mirror of
https://github.com/outline/outline.git
synced 2026-06-29 19:24:25 +03:00
38 lines
895 B
JavaScript
38 lines
895 B
JavaScript
"use strict";
|
|
|
|
/** @type {import('sequelize-cli').Migration} */
|
|
module.exports = {
|
|
async up(queryInterface, Sequelize) {
|
|
await queryInterface.sequelize.transaction(async transaction => {
|
|
await queryInterface.addColumn(
|
|
"imports",
|
|
"error",
|
|
{
|
|
type: Sequelize.STRING,
|
|
allowNull: true,
|
|
},
|
|
{ transaction }
|
|
);
|
|
|
|
await queryInterface.addColumn(
|
|
"import_tasks",
|
|
"error",
|
|
{
|
|
type: Sequelize.STRING,
|
|
allowNull: true,
|
|
},
|
|
{ transaction }
|
|
);
|
|
});
|
|
},
|
|
|
|
async down(queryInterface, Sequelize) {
|
|
await queryInterface.sequelize.transaction(async transaction => {
|
|
await queryInterface.removeColumn("imports", "error", { transaction });
|
|
await queryInterface.removeColumn("import_tasks", "error", {
|
|
transaction,
|
|
});
|
|
});
|
|
},
|
|
};
|