Files
dyolink/backend/prisma/migrations/20260907200000_case_completed_notifications/migration.sql
rameen e4f1759035
All checks were successful
Production — tag build, push, deploy / build-and-push (push) Successful in 28m21s
Production — tag build, push, deploy / deploy (push) Successful in 12m29s
fix: use mapped table name in case_completed migration
Prisma migrate failed on prod (P3009) because DELETE targeted
"UserNotification" instead of user_notifications.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-08 10:42:22 +03:30

9 lines
315 B
SQL

-- AlterEnum
ALTER TYPE "LabCaseActivityType" ADD VALUE 'CASE_COMPLETED';
-- AlterEnum
ALTER TYPE "UserNotificationType" ADD VALUE 'CASE_COMPLETED';
-- Step-level TASK_COMPLETED inbox rows were spam; case-complete uses CASE_COMPLETED going forward.
DELETE FROM "user_notifications" WHERE type = 'TASK_COMPLETED';