Files
outline/server/migrations/20250719063818-add-documentId-to-fileOperation.js
T
Hemachandar 50759d40e8 feat: Option to export nested documents (#9679)
* add migration file

* documents.export API

* download dialog

* file ops list item

* export task

* download modal styling

* cleanup

* lint

* Restore individual download actions

---------

Co-authored-by: Tom Moor <tom@getoutline.com>
2026-01-10 21:19:33 -05:00

20 lines
464 B
JavaScript

"use strict";
/** @type {import('sequelize-cli').Migration} */
module.exports = {
async up(queryInterface, Sequelize) {
await queryInterface.addColumn("file_operations", "documentId", {
type: Sequelize.UUID,
allowNull: true,
onDelete: "cascade",
references: {
model: "documents",
},
});
},
async down(queryInterface, Sequelize) {
await queryInterface.removeColumn("file_operations", "documentId");
},
};