fix: add statement-breakpoint to schedule_event enum migration (#86)
ALTER TYPE ADD VALUE cannot run inside a transaction in older PostgreSQL versions. The missing breakpoint caused migration 0033 to be skipped in production, leaving the 'schedule_event' enum value absent. Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
35fe84a1dd
commit
447546a4c2
1 changed files with 2 additions and 2 deletions
|
|
@ -1,5 +1,5 @@
|
|||
-- Add 'schedule_event' to event_type enum for non-scoring calendar entries
|
||||
-- (e.g. F1/IndyCar races that are shown in the schedule but don't award points)
|
||||
-- PostgreSQL does not support ADD VALUE in a transaction, but it does support it directly.
|
||||
|
||||
-- PostgreSQL does not support ADD VALUE in a transaction, so we use a breakpoint.
|
||||
--> statement-breakpoint
|
||||
ALTER TYPE "event_type" ADD VALUE IF NOT EXISTS 'schedule_event';
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue