2017-09-26 05:30:45 +02:00
|
|
|
module.exports = {
|
|
|
|
up: (queryInterface, Sequelize) => {
|
|
|
|
// logic for transforming into the new state
|
|
|
|
const p1 = queryInterface.addColumn(
|
2017-10-26 00:37:11 +02:00
|
|
|
'Claim',
|
|
|
|
'channelName',
|
2017-09-26 05:30:45 +02:00
|
|
|
{
|
|
|
|
type : Sequelize.STRING,
|
|
|
|
allowNull: true,
|
|
|
|
}
|
|
|
|
);
|
2017-10-26 00:37:11 +02:00
|
|
|
return Promise.all([p1]);
|
2017-09-26 05:30:45 +02:00
|
|
|
},
|
|
|
|
down: (queryInterface, Sequelize) => {
|
|
|
|
// logic for reverting the changes
|
|
|
|
const p1 = queryInterface.removeColumn(
|
2017-10-26 00:37:11 +02:00
|
|
|
'Claim',
|
|
|
|
'channelName'
|
2017-09-26 05:30:45 +02:00
|
|
|
);
|
2017-10-26 00:37:11 +02:00
|
|
|
return Promise.all([p1]);
|
2017-09-26 05:30:45 +02:00
|
|
|
},
|
|
|
|
};
|