Files
thrilltrack-explorer/supabase/migrations/20251015193124_78cdb5b0-4100-4d78-b338-14e508a6df3b.sql
2025-10-15 19:31:48 +00:00

21 lines
477 B
SQL

-- Add 'opening' to timeline event types
ALTER TABLE public.entity_timeline_events
DROP CONSTRAINT entity_timeline_events_event_type_check;
ALTER TABLE public.entity_timeline_events
ADD CONSTRAINT entity_timeline_events_event_type_check
CHECK (event_type IN (
'name_change',
'operator_change',
'owner_change',
'location_change',
'status_change',
'opening',
'closure',
'reopening',
'renovation',
'expansion',
'acquisition',
'milestone',
'other'
));