Fix migration 0068: add IF NOT EXISTS to enum ADD VALUE (#269)
The migration fails in production because the enum label "cs2_major_qualifying_points" already exists. Adding IF NOT EXISTS makes the statement idempotent so it won't error on re-run. https://claude.ai/code/session_015iUtjSgiL1ZUNggvj434gP Co-authored-by: Claude <noreply@anthropic.com>
This commit is contained in:
parent
1ee0d51fb3
commit
90127fe5bd
1 changed files with 1 additions and 1 deletions
|
|
@ -1,4 +1,4 @@
|
|||
ALTER TYPE "public"."simulator_type" ADD VALUE 'cs2_major_qualifying_points';--> statement-breakpoint
|
||||
ALTER TYPE "public"."simulator_type" ADD VALUE IF NOT EXISTS 'cs2_major_qualifying_points';--> statement-breakpoint
|
||||
CREATE TABLE IF NOT EXISTS "cs2_major_stage_results" (
|
||||
"id" uuid PRIMARY KEY DEFAULT gen_random_uuid() NOT NULL,
|
||||
"scoring_event_id" uuid NOT NULL,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue