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
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user