@grouparoo/core
Version:
The Grouparoo Core
32 lines (25 loc) • 814 B
text/typescript
import Sequelize from "sequelize";
export default {
up: async (queryInterface: Sequelize.QueryInterface) => {
await queryInterface.addIndex("imports", ["startedAt"], {
fields: ["startedAt"],
});
await queryInterface.addIndex("exports", ["startedAt"], {
fields: ["startedAt"],
});
await queryInterface.addIndex("exportProcessors", ["startedAt"], {
fields: ["startedAt"],
});
},
down: async (queryInterface: Sequelize.QueryInterface) => {
await queryInterface.removeIndex("imports", ["startedAt"], {
fields: ["startedAt"],
});
await queryInterface.removeIndex("exports", ["startedAt"], {
fields: ["startedAt"],
});
await queryInterface.removeIndex("exportProcessors", ["startedAt"], {
fields: ["startedAt"],
});
},
};