spee.ch/migrations/Add-UserId-To-File.js

21 lines
430 B
JavaScript
Raw Normal View History

2017-09-19 21:54:23 +02:00
module.exports = {
up: (queryInterface, Sequelize) => {
// logic for transforming into the new state
return queryInterface.addColumn(
'File',
'UserId',
{
type : Sequelize.STRING,
allowNull: true,
}
);
},
down: (queryInterface, Sequelize) => {
// logic for reverting the changes
return queryInterface.removeColumn(
'File',
'UserId'
);
},
};