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/20200519032353-text-backup.js

19 lines
500 B
JavaScript

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