Adds content column to documents and revisions as JSON snapshot (#6179)
This commit is contained in:
19
server/migrations/20231118195149-add-content-to-documents.js
Normal file
19
server/migrations/20231118195149-add-content-to-documents.js
Normal file
@@ -0,0 +1,19 @@
|
||||
'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");
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user