@grouparoo/core
Version:
The Grouparoo Core
40 lines (31 loc) • 995 B
text/typescript
import Sequelize from "sequelize";
export default {
up: async (queryInterface: Sequelize.QueryInterface) => {
await queryInterface.addIndex("profiles", ["createdAt"], {
fields: ["createdAt"],
});
await queryInterface.addIndex("runs", ["updatedAt"], {
fields: ["updatedAt"],
});
await queryInterface.addIndex("imports", ["createdAt"], {
fields: ["createdAt"],
});
await queryInterface.addIndex("exports", ["createdAt"], {
fields: ["createdAt"],
});
},
down: async (queryInterface: Sequelize.QueryInterface) => {
await queryInterface.removeIndex("profiles", ["createdAt"], {
fields: ["createdAt"],
});
await queryInterface.removeIndex("runs", ["updatedAt"], {
fields: ["updatedAt"],
});
await queryInterface.removeIndex("imports", ["createdAt"], {
fields: ["createdAt"],
});
await queryInterface.removeIndex("exports", ["createdAt"], {
fields: ["createdAt"],
});
},
};