From feccd269f7251b958b4499a71ecefc6c57873ae2 Mon Sep 17 00:00:00 2001 From: Matt Date: Mon, 23 Feb 2026 16:12:33 +0100 Subject: [PATCH] Add COI_REASSIGNED and MANUAL_REASSIGNED to prod SQL insert script Co-Authored-By: Claude Opus 4.6 --- .../insert-dropout-reassigned-setting.sql | 28 +++++++++++++++++-- 1 file changed, 25 insertions(+), 3 deletions(-) diff --git a/prisma/migrations/insert-dropout-reassigned-setting.sql b/prisma/migrations/insert-dropout-reassigned-setting.sql index 390ce73..fc10016 100644 --- a/prisma/migrations/insert-dropout-reassigned-setting.sql +++ b/prisma/migrations/insert-dropout-reassigned-setting.sql @@ -1,10 +1,31 @@ --- Insert DROPOUT_REASSIGNED notification email setting into production DB +-- Insert missing notification email settings into production DB -- Run manually: psql -d mopc -f prisma/migrations/insert-dropout-reassigned-setting.sql -- Safe to run multiple times (uses ON CONFLICT to skip if already exists) INSERT INTO "NotificationEmailSetting" ( "id", "notificationType", "category", "label", "description", "sendEmail", "createdAt", "updatedAt" -) VALUES ( +) VALUES +( + gen_random_uuid()::text, + 'COI_REASSIGNED', + 'jury', + 'COI Reassignment', + 'When a project is reassigned to you due to another juror''s conflict of interest', + true, + NOW(), + NOW() +), +( + gen_random_uuid()::text, + 'MANUAL_REASSIGNED', + 'jury', + 'Manual Reassignment', + 'When an admin manually reassigns a project to you', + true, + NOW(), + NOW() +), +( gen_random_uuid()::text, 'DROPOUT_REASSIGNED', 'jury', @@ -13,4 +34,5 @@ INSERT INTO "NotificationEmailSetting" ( true, NOW(), NOW() -) ON CONFLICT ("notificationType") DO NOTHING; +) +ON CONFLICT ("notificationType") DO NOTHING;