add migration; insert 'deleted' column in booking change incidents table

This commit is contained in:
Bilal Catic
2019-08-22 11:14:35 +02:00
parent 1bb87cb476
commit 934ffa90a7
3 changed files with 21 additions and 1 deletions

View File

@@ -0,0 +1,15 @@
'use strict';
module.exports = {
up: (queryInterface, Sequelize) => {
return queryInterface.addColumn('bookingChangeIncidents', 'deleted', {
type: Sequelize.BOOLEAN,
defaultValue: false,
after: 'chargeFee',
});
},
down: (queryInterface, Sequelize) => {
return queryInterface.removeColumn('bookingChangeIncidents', 'deleted');
}
};