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:
Chris Parsons 2026-03-07 22:45:59 -08:00 committed by GitHub
parent 35fe84a1dd
commit 447546a4c2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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';