mirror of
https://github.com/pacnpal/thrilltrack-explorer.git
synced 2025-12-20 04:31:13 -05:00
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.
16 lines
518 B
SQL
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 $$; |