'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'),
      ])
  }
};
