Add "opening" timeline event type

This commit is contained in:
gpt-engineer-app[bot]
2025-10-15 19:31:48 +00:00
parent 444634dc85
commit dfc89bd43b
3 changed files with 38 additions and 14 deletions

View File

@@ -0,0 +1,21 @@
-- 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'
));