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

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