Files
gancio/server/migrations/20190801110053-boost.js

29 lines
613 B
JavaScript
Raw Normal View History

2019-09-11 19:12:24 +02:00
'use strict'
2019-08-01 15:18:45 +02:00
module.exports = {
up: (queryInterface, Sequelize) => {
2019-08-03 01:03:01 +02:00
return queryInterface.addColumn('events', 'boost', {
2019-08-01 15:18:45 +02:00
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');
*/
}
2019-09-11 19:12:24 +02:00
}