Files
outline/server/migrations/20240821001616-add-notifications-index.js
T
Tom Moor 18d4eaee07 perf: Add missing indexes (#7425)
* perf: Add missing indexes to notifications table

* Add two more missing indexes

* tests
2024-08-20 17:44:06 -07:00

13 lines
331 B
JavaScript

'use strict';
/** @type {import('sequelize-cli').Migration} */
module.exports = {
async up (queryInterface, Sequelize) {
await queryInterface.addIndex('notifications', ['teamId', 'userId']);
},
async down (queryInterface, Sequelize) {
await queryInterface.removeIndex('notifications', ['teamId', 'userId']);
}
};