Files
outline/server/migrations/20260516000000-add-import-task-phase-and-import-scratch.js
Tom Moor 82d7041b6b chore: Refactor Markdown importer to use new import pipeline (#12361)
* chore: Refactor Markdown importer to use new import pipeline

---------

Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-16 14:10:15 -04:00

22 lines
564 B
JavaScript

"use strict";
/** @type {import('sequelize-cli').Migration} */
module.exports = {
async up(queryInterface, Sequelize) {
await queryInterface.addColumn("import_tasks", "phase", {
type: Sequelize.STRING,
allowNull: false,
defaultValue: "page",
});
await queryInterface.addColumn("imports", "scratch", {
type: Sequelize.JSONB,
allowNull: true,
});
},
async down(queryInterface) {
await queryInterface.removeColumn("imports", "scratch");
await queryInterface.removeColumn("import_tasks", "phase");
},
};