perf: Additional missing index

This commit is contained in:
Tom Moor
2022-03-10 18:50:28 -08:00
parent 2ef827ee6f
commit 36f90b3a46

View File

@@ -8,10 +8,14 @@ module.exports = {
await queryInterface.addIndex("views", ["updatedAt"], {
name: "views_updated_at",
});
await queryInterface.addIndex("collection_users", ["userId"], {
name: "collection_users_user_id",
});
},
down: async (queryInterface, Sequelize) => {
await queryInterface.removeIndex("views", "views_updated_at");
await queryInterface.removeIndex("views", "views_user_id");
await queryInterface.removeIndex("collection_users", "collection_users_user_id");
}
};