Files
outline/server/migrations/20240828081032-add-notifications-index.js
T
Hemachandar 7f17a51e11 feat: Add email headers to enhance threading (#7477)
* feat: Add email headers to enhance threading

* tsc

* review

* change comment mentioned email subject

* paginated load

* rename util method

* add tests

* group events

* test for unsupported notification

* typo

* review
2024-09-03 17:20:56 -07:00

13 lines
338 B
JavaScript

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