Fix migration: drop RoundTemplate before RoundType enum
Build and Push Docker Image / build (push) Successful in 10m26s Details

RoundTemplate table depends on RoundType enum, must be dropped first.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Matt 2026-02-13 19:45:34 +01:00
parent dc075f8969
commit 31225b099e
1 changed files with 2 additions and 1 deletions

View File

@ -281,7 +281,8 @@ ALTER TABLE "Message" DROP CONSTRAINT IF EXISTS "Message_roundId_fkey";
-- Make TaggingJob.roundId nullable -- Make TaggingJob.roundId nullable
DO $$ BEGIN ALTER TABLE "TaggingJob" ALTER COLUMN "roundId" DROP NOT NULL; EXCEPTION WHEN others THEN NULL; END $$; 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 TABLE IF EXISTS "Round" CASCADE;
DROP TYPE IF EXISTS "RoundStatus"; DROP TYPE IF EXISTS "RoundStatus";
DROP TYPE IF EXISTS "RoundType"; DROP TYPE IF EXISTS "RoundType";