chore: Add documentId index to events table (#2331)
This commit is contained in:
11
server/migrations/20210716162923-events-indexes.js
Normal file
11
server/migrations/20210716162923-events-indexes.js
Normal file
@@ -0,0 +1,11 @@
|
||||
'use strict';
|
||||
|
||||
module.exports = {
|
||||
up: async (queryInterface, Sequelize) => {
|
||||
await queryInterface.addIndex("events", ["documentId"]);
|
||||
},
|
||||
|
||||
down: async (queryInterface, Sequelize) => {
|
||||
await queryInterface.removeIndex("events", ["documentId"]);
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user