mirror of
https://github.com/pacnpal/thrilltrack-explorer.git
synced 2025-12-21 12:51:14 -05:00
Add "opening" timeline event type
This commit is contained in:
@@ -48,6 +48,7 @@ const timelineEventSchema = z.object({
|
|||||||
'owner_change',
|
'owner_change',
|
||||||
'location_change',
|
'location_change',
|
||||||
'status_change',
|
'status_change',
|
||||||
|
'opening',
|
||||||
'closure',
|
'closure',
|
||||||
'reopening',
|
'reopening',
|
||||||
'renovation',
|
'renovation',
|
||||||
@@ -211,6 +212,7 @@ export function TimelineEventEditorDialog({
|
|||||||
<SelectItem value="owner_change">Ownership Change</SelectItem>
|
<SelectItem value="owner_change">Ownership Change</SelectItem>
|
||||||
<SelectItem value="location_change">Relocation</SelectItem>
|
<SelectItem value="location_change">Relocation</SelectItem>
|
||||||
<SelectItem value="status_change">Status Change</SelectItem>
|
<SelectItem value="status_change">Status Change</SelectItem>
|
||||||
|
<SelectItem value="opening">Opening</SelectItem>
|
||||||
<SelectItem value="closure">Closure</SelectItem>
|
<SelectItem value="closure">Closure</SelectItem>
|
||||||
<SelectItem value="reopening">Reopening</SelectItem>
|
<SelectItem value="reopening">Reopening</SelectItem>
|
||||||
<SelectItem value="renovation">Renovation</SelectItem>
|
<SelectItem value="renovation">Renovation</SelectItem>
|
||||||
|
|||||||
@@ -11,6 +11,7 @@ export type TimelineEventType =
|
|||||||
| 'owner_change'
|
| 'owner_change'
|
||||||
| 'location_change'
|
| 'location_change'
|
||||||
| 'status_change'
|
| 'status_change'
|
||||||
|
| 'opening'
|
||||||
| 'closure'
|
| 'closure'
|
||||||
| 'reopening'
|
| 'reopening'
|
||||||
| 'renovation'
|
| 'renovation'
|
||||||
|
|||||||
@@ -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'
|
||||||
|
));
|
||||||
Reference in New Issue
Block a user