diff --git a/server/migrations/20220311020825-views-indexes.js b/server/migrations/20220311020825-views-indexes.js index 47c1d7253..74331a1b5 100644 --- a/server/migrations/20220311020825-views-indexes.js +++ b/server/migrations/20220311020825-views-indexes.js @@ -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"); } };