UNPKG

@grouparoo/core

Version:
24 lines (19 loc) 583 B
import Sequelize from "sequelize"; export default { up: async (queryInterface: Sequelize.QueryInterface) => { await queryInterface.addIndex("profiles", ["state"], { fields: ["state"], }); await queryInterface.addIndex("profileProperties", ["state"], { fields: ["state"], }); }, down: async (queryInterface: Sequelize.QueryInterface) => { await queryInterface.removeIndex("profiles", ["state"], { fields: ["state"], }); await queryInterface.removeIndex("profileProperties", ["state"], { fields: ["state"], }); }, };