@grouparoo/core
Version:
The Grouparoo Core
24 lines (19 loc) • 583 B
text/typescript
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"],
});
},
};