mirror of
https://framagit.org/les/gancio.git
synced 2025-01-31 16:42:22 +01:00
29 lines
658 B
JavaScript
29 lines
658 B
JavaScript
'use strict';
|
|
|
|
module.exports = {
|
|
async up (queryInterface, Sequelize) {
|
|
/**
|
|
* Add altering commands here.
|
|
*
|
|
* Example:
|
|
* await queryInterface.createTable('users', { id: Sequelize.INTEGER });
|
|
*/
|
|
return Promise.all(
|
|
[
|
|
await queryInterface.addColumn('events', 'online_locations', { type: Sequelize.JSON }),
|
|
])
|
|
},
|
|
|
|
async down (queryInterface, Sequelize) {
|
|
/**
|
|
* Add reverting commands here.
|
|
*
|
|
* Example:
|
|
* await queryInterface.dropTable('users');
|
|
*/
|
|
return Promise.all(
|
|
[
|
|
await queryInterface.removeColumn('events', 'online_locations'),
|
|
])
|
|
}
|
|
};
|