mirror of
https://github.com/outline/outline.git
synced 2026-06-28 18:54:24 +03:00
18d4eaee07
* perf: Add missing indexes to notifications table * Add two more missing indexes * tests
13 lines
331 B
JavaScript
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']);
|
|
}
|
|
};
|