extended editor
This commit is contained in:
14
migrations/20240621073053-alter-files-table.js
Normal file
14
migrations/20240621073053-alter-files-table.js
Normal file
@@ -0,0 +1,14 @@
|
||||
'use strict';
|
||||
|
||||
module.exports = {
|
||||
up: async (queryInterface, Sequelize) => {
|
||||
await queryInterface.addColumn('Files', 'originalName', {
|
||||
type: Sequelize.STRING,
|
||||
allowNull: false,
|
||||
after: 'title' // optional: to place the column after 'title'
|
||||
});
|
||||
},
|
||||
down: async (queryInterface, Sequelize) => {
|
||||
await queryInterface.removeColumn('Files', 'originalName');
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user