Add COI_REASSIGNED and MANUAL_REASSIGNED to prod SQL insert script
All checks were successful
Build and Push Docker Image / build (push) Successful in 10m0s

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-02-23 16:12:33 +01:00
parent 95d51e7de3
commit feccd269f7

View File

@@ -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 -- 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) -- Safe to run multiple times (uses ON CONFLICT to skip if already exists)
INSERT INTO "NotificationEmailSetting" ( INSERT INTO "NotificationEmailSetting" (
"id", "notificationType", "category", "label", "description", "sendEmail", "createdAt", "updatedAt" "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, gen_random_uuid()::text,
'DROPOUT_REASSIGNED', 'DROPOUT_REASSIGNED',
'jury', 'jury',
@@ -13,4 +34,5 @@ INSERT INTO "NotificationEmailSetting" (
true, true,
NOW(), NOW(),
NOW() NOW()
) ON CONFLICT ("notificationType") DO NOTHING; )
ON CONFLICT ("notificationType") DO NOTHING;