feat: Ensure that editorVersion is saved with document/revisions (#1212)
This commit is contained in:
19
server/migrations/20200316040755-document-editor-version.js
Normal file
19
server/migrations/20200316040755-document-editor-version.js
Normal file
@@ -0,0 +1,19 @@
|
||||
'use strict';
|
||||
|
||||
module.exports = {
|
||||
up: async (queryInterface, Sequelize) => {
|
||||
await queryInterface.addColumn('documents', 'editorVersion', {
|
||||
type: Sequelize.STRING,
|
||||
allowNull: true,
|
||||
});
|
||||
await queryInterface.addColumn('revisions', 'editorVersion', {
|
||||
type: Sequelize.STRING,
|
||||
allowNull: true,
|
||||
});
|
||||
},
|
||||
|
||||
down: async (queryInterface, Sequelize) => {
|
||||
await queryInterface.removeColumn('documents', 'editorVersion');
|
||||
await queryInterface.removeColumn('revisions', 'editorVersion');
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user