mirror of
https://github.com/outline/outline.git
synced 2026-11-27 07:58:51 +03:00
Added indexes
This commit is contained in:
1 parent
a2a642c16c
commit
2bcf37fd83
1 file changed
+29
@@ -0,0 +1,29 @@
|
||||
'use strict';
|
||||
|
||||
module.exports = {
|
||||
up: function (queryInterface, Sequelize) {
|
||||
queryInterface.addIndex('documents', ['urlId']);
|
||||
queryInterface.addIndex('documents', ['id', 'atlasId']);
|
||||
queryInterface.addIndex('documents', ['id', 'teamId']);
|
||||
queryInterface.addIndex('documents', ['parentDocumentId', 'atlasId']);
|
||||
|
||||
queryInterface.addIndex('atlases', ['id', 'teamId']);
|
||||
|
||||
queryInterface.addIndex('teams', ['slackId']);
|
||||
|
||||
queryInterface.addIndex('users', ['slackId']);
|
||||
},
|
||||
|
||||
down: function (queryInterface, Sequelize) {
|
||||
queryInterface.removeIndex('documents', ['urlId']);
|
||||
queryInterface.removeIndex('documents', ['id', 'atlasId']);
|
||||
queryInterface.removeIndex('documents', ['id', 'teamId']);
|
||||
queryInterface.removeIndex('documents', ['parentDocumentId', 'atlasId']);
|
||||
|
||||
queryInterface.removeIndex('atlases', ['id', 'teamId']);
|
||||
|
||||
queryInterface.removeIndex('teams', ['slackId']);
|
||||
|
||||
queryInterface.removeIndex('users', ['slackId']);
|
||||
}
|
||||
};
|
||||
Reference in new issue
Block a user