feat: Allow deletion of imports (#5907)
This commit is contained in:
14
server/migrations/20231001032754-file-operation-paranoid.js
Normal file
14
server/migrations/20231001032754-file-operation-paranoid.js
Normal file
@@ -0,0 +1,14 @@
|
||||
'use strict';
|
||||
|
||||
module.exports = {
|
||||
async up (queryInterface, Sequelize) {
|
||||
await queryInterface.addColumn("file_operations", "deletedAt", {
|
||||
type: Sequelize.DATE,
|
||||
allowNull: true,
|
||||
});
|
||||
},
|
||||
|
||||
async down (queryInterface) {
|
||||
await queryInterface.removeColumn("file_operations", "deletedAt");
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user