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