This repository has been archived on 2022-08-14. You can view files and clone it, but cannot push or open issues or pull requests.
outline/server/migrations/20190423051708-add-search-i...

14 lines
526 B
JavaScript

module.exports = {
up: async (queryInterface, Sequelize) => {
await queryInterface.addIndex('documents', ['updatedAt']);
await queryInterface.addIndex('documents', ['archivedAt']);
await queryInterface.addIndex('documents', ['collaboratorIds']);
},
down: async (queryInterface, Sequelize) => {
await queryInterface.removeIndex('documents', ['updatedAt']);
await queryInterface.removeIndex('documents', ['archivedAt']);
await queryInterface.removeIndex('documents', ['collaboratorIds']);
},
};