Files
MOPC-Portal/prisma/migrations/insert-dropout-reassigned-setting.sql

17 lines
650 B
MySQL
Raw Normal View History

-- Insert DROPOUT_REASSIGNED notification email setting 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 (
gen_random_uuid()::text,
'DROPOUT_REASSIGNED',
'jury',
'Juror Dropout Reassignment',
'When projects are reassigned to you because a juror dropped out or became unavailable',
true,
NOW(),
NOW()
) ON CONFLICT ("notificationType") DO NOTHING;