23 lines
567 B
JavaScript
23 lines
567 B
JavaScript
'use strict';
|
|
|
|
module.exports = {
|
|
async up(queryInterface, Sequelize) {
|
|
await queryInterface.sequelize.query(`
|
|
ALTER TABLE falukant_data.transport
|
|
ADD COLUMN IF NOT EXISTS guard_count integer NOT NULL DEFAULT 0;
|
|
`);
|
|
|
|
await queryInterface.sequelize.query(`
|
|
ALTER TABLE falukant_data.underground
|
|
ALTER COLUMN victim_id DROP NOT NULL;
|
|
`);
|
|
},
|
|
|
|
async down(queryInterface, Sequelize) {
|
|
await queryInterface.sequelize.query(`
|
|
ALTER TABLE falukant_data.transport
|
|
DROP COLUMN IF EXISTS guard_count;
|
|
`);
|
|
}
|
|
};
|