mirror of
https://framagit.org/les/gancio.git
synced 2025-02-01 00:52:01 +01:00
26 lines
738 B
JavaScript
26 lines
738 B
JavaScript
'use strict';
|
|
|
|
module.exports = {
|
|
up: (queryInterface, Sequelize) => {
|
|
/*
|
|
Add altering commands here.
|
|
Return a promise to correctly handle asynchronicity.
|
|
|
|
Example:
|
|
return queryInterface.createTable('users', { id: Sequelize.INTEGER });
|
|
*/
|
|
return queryInterface.addColumn('EventNotifications', 'status',
|
|
{ type: Sequelize.ENUM, values: ['new', 'sent', 'error'], index: true, defaultValue: 'new' })
|
|
},
|
|
|
|
down: (queryInterface, Sequelize) => {
|
|
/*
|
|
Add reverting commands here.
|
|
Return a promise to correctly handle asynchronicity.
|
|
|
|
Example:
|
|
return queryInterface.dropTable('users');
|
|
*/
|
|
return queryInterface.removeColumn('EventNotifications', 'status')
|
|
}
|
|
};
|