Prisma migrate failed on prod (P3009) because DELETE targeted "UserNotification" instead of user_notifications. Co-authored-by: Cursor <cursoragent@cursor.com>
9 lines
315 B
SQL
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';
|