From ab9d424240f0e9d06b576e4e1a9d9c1e194c1471 Mon Sep 17 00:00:00 2001 From: "gpt-engineer-app[bot]" <159125892+gpt-engineer-app[bot]@users.noreply.github.com> Date: Wed, 12 Nov 2025 04:33:19 +0000 Subject: [PATCH] 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. --- ...3249_6cb4d237-b48b-4a20-b946-225b8b5a4509.sql | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 supabase/migrations/20251112043249_6cb4d237-b48b-4a20-b946-225b8b5a4509.sql diff --git a/supabase/migrations/20251112043249_6cb4d237-b48b-4a20-b946-225b8b5a4509.sql b/supabase/migrations/20251112043249_6cb4d237-b48b-4a20-b946-225b8b5a4509.sql new file mode 100644 index 00000000..7f0abc07 --- /dev/null +++ b/supabase/migrations/20251112043249_6cb4d237-b48b-4a20-b946-225b8b5a4509.sql @@ -0,0 +1,16 @@ +-- 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 $$; \ No newline at end of file