'use strict'; module.exports = { up: async (queryInterface, Sequelize) => { await queryInterface.addColumn('trials', 'attributes', { type: Sequelize.JSONB, allowNull: true, defaultValue: {}, }); await queryInterface.addColumn('trials', 'trial_category', { type: Sequelize.STRING, allowNull: false, defaultValue: 'PLANT', }); }, down: async (queryInterface) => { await queryInterface.removeColumn('trials', 'attributes'); await queryInterface.removeColumn('trials', 'trial_category'); }, };