Fixes
This commit is contained in:
11
server/migrations/20160816082738-add-revision-index.js
Normal file
11
server/migrations/20160816082738-add-revision-index.js
Normal file
@@ -0,0 +1,11 @@
|
||||
'use strict';
|
||||
|
||||
module.exports = {
|
||||
up: function (queryInterface, Sequelize) {
|
||||
queryInterface.addIndex('revisions', ['documentId']);
|
||||
},
|
||||
|
||||
down: function (queryInterface, Sequelize) {
|
||||
queryInterface.removeIndex('revisions', ['documentId']);
|
||||
},
|
||||
};
|
||||
Reference in New Issue
Block a user