perf: Additional missing index
This commit is contained in:
@@ -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");
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user