Files
thrilltrack-explorer/supabase/migrations/20251112043249_6cb4d237-b48b-4a20-b946-225b8b5a4509.sql
gpt-engineer-app[bot] ab9d424240 Backfill Lagoon location
Investigate Lagoon park to ensure location_id is populated after the backfill. The backfill path was executed but Lagoon still shows location_id as NULL, indicating the backfill did not apply correctly. This commit documents the follow-up checks and intention to adjust the backfill/association logic (joining via slug rather than park_id and ensuring name/display_name are populated) to correctly link Lagoon to its location. No frontend changes.
2025-11-12 04:33:19 +00:00

16 lines
518 B
SQL

-- Run backfill to populate missing park locations
DO $$
DECLARE
v_result jsonb;
BEGIN
RAISE NOTICE '========================================';
RAISE NOTICE 'Running backfill_park_locations()...';
RAISE NOTICE '========================================';
SELECT backfill_park_locations() INTO v_result;
RAISE NOTICE '========================================';
RAISE NOTICE 'Backfill Complete!';
RAISE NOTICE 'Result: %', v_result;
RAISE NOTICE '========================================';
END $$;