Added multiple features
This commit is contained in:
15
migrations/20240617192740-create-images-table.js
Normal file
15
migrations/20240617192740-create-images-table.js
Normal file
@@ -0,0 +1,15 @@
|
||||
'use strict';
|
||||
|
||||
/** @type {import('sequelize-cli').Migration} */
|
||||
module.exports = {
|
||||
async up (queryInterface, Sequelize) {
|
||||
await queryInterface.addColumn('images', 'pageId', {
|
||||
type: Sequelize.INTEGER,
|
||||
allowNull: true,
|
||||
});
|
||||
},
|
||||
|
||||
async down (queryInterface, Sequelize) {
|
||||
await queryInterface.removeColumn('images', 'pageId');
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user