This repository has been archived on 2022-08-14. You can view files and clone it, but cannot push or open issues or pull requests.
outline/server/migrations/20171017055026-remove-docum...

24 lines
753 B
JavaScript

module.exports = {
up: async (queryInterface, Sequelize) => {
await queryInterface.removeColumn('documents', 'html');
await queryInterface.removeColumn('documents', 'preview');
await queryInterface.removeColumn('revisions', 'html');
await queryInterface.removeColumn('revisions', 'preview');
},
down: async (queryInterface, Sequelize) => {
await queryInterface.addColumn('documents', 'html', {
type: Sequelize.TEXT,
});
await queryInterface.addColumn('documents', 'preview', {
type: Sequelize.TEXT,
});
await queryInterface.addColumn('revisions', 'html', {
type: Sequelize.TEXT,
});
await queryInterface.addColumn('revisions', 'preview', {
type: Sequelize.TEXT,
});
},
};