Files
outline/server/migrations/20240821002502-add-user-authentication-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
325 B
JavaScript

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