Files
thrilltrack-explorer/supabase/migrations/20251015194717_0e3d5b12-fe41-4041-81a0-fcf6e7484174.sql
2025-10-15 19:48:19 +00:00

13 lines
496 B
SQL

-- Ensure all existing timeline events are public
UPDATE entity_timeline_events
SET is_public = true
WHERE is_public = false;
-- Add check constraint to enforce all events are public
ALTER TABLE entity_timeline_events
ADD CONSTRAINT timeline_events_must_be_public
CHECK (is_public = true);
-- Add comment to document this requirement
COMMENT ON COLUMN entity_timeline_events.is_public IS
'All timeline events are public. This column is kept for potential future use but must always be true.';