Store source metadata for imported documents (#6136)
This commit is contained in:
14
server/migrations/20231111023920-add-source-metadata.js
Normal file
14
server/migrations/20231111023920-add-source-metadata.js
Normal file
@@ -0,0 +1,14 @@
|
||||
'use strict';
|
||||
|
||||
module.exports = {
|
||||
async up (queryInterface, Sequelize) {
|
||||
await queryInterface.addColumn("documents", "sourceMetadata", {
|
||||
type: Sequelize.JSONB,
|
||||
allowNull: true,
|
||||
});
|
||||
},
|
||||
|
||||
async down (queryInterface) {
|
||||
await queryInterface.removeColumn("documents", "sourceMetadata");
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user