chore: Add documentId index to events table (#2331)

This commit is contained in:
Tom Moor 2021-07-19 12:19:26 -04:00 committed by GitHub
parent 0cad99c343
commit 8f6e956bc5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 11 additions and 0 deletions

View 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"]);
}
};