Adds content column to documents and revisions as JSON snapshot (#6179)

This commit is contained in:
Tom Moor
2023-12-17 10:51:11 -05:00
committed by GitHub
parent 78b9322a28
commit 1840370e6f
18 changed files with 411 additions and 174 deletions

View 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");
}
};