add imageFileName column

master
shoaibalmasi 4 years ago
parent 52eaa0caea
commit 3fcc0b2f4c
  1. 22
      migrations/20210331080204-addImageFileNameColumn.js

@ -0,0 +1,22 @@
'use strict';
module.exports = {
up(queryInterface, Sequelize) {
return Promise.all([
queryInterface.addColumn(
'Users',
'imageFileName',
{
type: Sequelize.STRING,
allowNull: false,
},
)
]);
},
down(queryInterface, Sequelize) {
return Promise.all([
queryInterface.removeColumn('Users', 'imageFileName'),
]);
},
};
Loading…
Cancel
Save