Files
outline/server/migrations/20250225153529-add-notification-membershipId.js
Hemachandar 7a90a909b3 Prevent duplicate emails when user has existing access to a document. (#8263)
* check user has higher access

* membershipId column

* handle document shared email

* fix and cleanup

* tests

* jsdoc

* event changeset

* check collection permission

* change date in migration filename

* review

* rename migration filename to today

* required group, jsdoc
2025-03-04 17:56:44 -08:00

15 lines
357 B
JavaScript

"use strict";
/** @type {import('sequelize-cli').Migration} */
module.exports = {
async up(queryInterface, Sequelize) {
await queryInterface.addColumn("notifications", "membershipId", {
type: Sequelize.UUID,
});
},
async down(queryInterface, Sequelize) {
await queryInterface.removeColumn("notifications", "membershipId");
},
};