Files
gancio/server/migrations/20190801110053-boost.js
2019-08-01 15:18:45 +02:00

29 lines
607 B
JavaScript

'use strict';
module.exports = {
up: (queryInterface, Sequelize) => {
queryInterface.addColumn('event', 'boost', {
type: Sequelize.JSON,
defaultValue: []
})
/*
Add altering commands here.
Return a promise to correctly handle asynchronicity.
Example:
return queryInterface.createTable('users', { id: Sequelize.INTEGER });
*/
},
down: (queryInterface, Sequelize) => {
/*
Add reverting commands here.
Return a promise to correctly handle asynchronicity.
Example:
return queryInterface.dropTable('users');
*/
}
};