From 31225b099ef76f9e5d8366d0034eae7fcc00777e Mon Sep 17 00:00:00 2001 From: Matt Date: Fri, 13 Feb 2026 19:45:34 +0100 Subject: [PATCH] Fix migration: drop RoundTemplate before RoundType enum RoundTemplate table depends on RoundType enum, must be dropped first. Co-Authored-By: Claude Opus 4.6 --- .../20260213000000_add_pipeline_stage_system/migration.sql | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/prisma/migrations/20260213000000_add_pipeline_stage_system/migration.sql b/prisma/migrations/20260213000000_add_pipeline_stage_system/migration.sql index 5fde63f..9c76a84 100644 --- a/prisma/migrations/20260213000000_add_pipeline_stage_system/migration.sql +++ b/prisma/migrations/20260213000000_add_pipeline_stage_system/migration.sql @@ -281,7 +281,8 @@ ALTER TABLE "Message" DROP CONSTRAINT IF EXISTS "Message_roundId_fkey"; -- Make TaggingJob.roundId nullable DO $$ BEGIN ALTER TABLE "TaggingJob" ALTER COLUMN "roundId" DROP NOT NULL; EXCEPTION WHEN others THEN NULL; END $$; --- Drop Round table and its enums (model retired in Phase 6) +-- Drop Round and RoundTemplate tables and their enums (models retired in Phase 6) +DROP TABLE IF EXISTS "RoundTemplate" CASCADE; DROP TABLE IF EXISTS "Round" CASCADE; DROP TYPE IF EXISTS "RoundStatus"; DROP TYPE IF EXISTS "RoundType";