From e4f175903556bf4f09284e57fb46e91ac9231dba Mon Sep 17 00:00:00 2001 From: rameen Date: Tue, 8 Sep 2026 10:42:22 +0330 Subject: [PATCH] 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 --- .../20260907200000_case_completed_notifications/migration.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/prisma/migrations/20260907200000_case_completed_notifications/migration.sql b/backend/prisma/migrations/20260907200000_case_completed_notifications/migration.sql index 647af28..c2e895d 100644 --- a/backend/prisma/migrations/20260907200000_case_completed_notifications/migration.sql +++ b/backend/prisma/migrations/20260907200000_case_completed_notifications/migration.sql @@ -5,4 +5,4 @@ ALTER TYPE "LabCaseActivityType" ADD VALUE 'CASE_COMPLETED'; ALTER TYPE "UserNotificationType" ADD VALUE 'CASE_COMPLETED'; -- Step-level TASK_COMPLETED inbox rows were spam; case-complete uses CASE_COMPLETED going forward. -DELETE FROM "UserNotification" WHERE type = 'TASK_COMPLETED'; +DELETE FROM "user_notifications" WHERE type = 'TASK_COMPLETED';