* perf: Remove no-longer-used 'backup' columns These were added as part of the move to the v2 editor over a year ago incase any text was not correctly converted. After a year of use no cases of failed conversion have occurred that required the use of this column * Remove migration, will do in 2-step release * perf: Remove no-longer-used 'backup' columns These were added as part of the move to the v2 editor over a year ago incase any text was not correctly converted. After a year of use no cases of failed conversion have occurred that required the use of this column
19 lines
500 B
JavaScript
19 lines
500 B
JavaScript
'use strict';
|
|
|
|
module.exports = {
|
|
up: async (queryInterface, Sequelize) => {
|
|
await queryInterface.removeColumn('documents', 'backup');
|
|
await queryInterface.removeColumn('revisions', 'backup');
|
|
},
|
|
|
|
down: async (queryInterface, Sequelize) => {
|
|
await queryInterface.addColumn('documents', 'backup', {
|
|
type: Sequelize.TEXT,
|
|
allowNull: true,
|
|
});
|
|
await queryInterface.addColumn('revisions', 'backup', {
|
|
type: Sequelize.TEXT,
|
|
allowNull: true,
|
|
});
|
|
}
|
|
}; |