diff --git a/drizzle/0033_add_schedule_event_type.sql b/drizzle/0033_add_schedule_event_type.sql index 5325b58..144627b 100644 --- a/drizzle/0033_add_schedule_event_type.sql +++ b/drizzle/0033_add_schedule_event_type.sql @@ -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';