Files
outline/server/migrations/20231118195149-add-content-to-documents.js

20 lines
488 B
JavaScript

'use strict';
module.exports = {
async up (queryInterface, Sequelize) {
await queryInterface.addColumn("documents", "content", {
type: Sequelize.JSONB,
allowNull: true,
});
await queryInterface.addColumn("revisions", "content", {
type: Sequelize.JSONB,
allowNull: true,
});
},
async down (queryInterface) {
await queryInterface.removeColumn("revisions", "content");
await queryInterface.removeColumn("documents", "content");
}
};