mirror of
https://github.com/zvx-echo6/central.git
synced 2026-05-21 18:14:44 +02:00
schema: migrate NWS settings from states to region bbox
- Remove states array from NWS settings - Add region bbox covering ID/OR/WA/MT/WY/UT/NV - Bbox: north=49.5, south=31.0, east=-102.0, west=-124.5 Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
71a43d3c98
commit
da8942a457
1 changed files with 11 additions and 0 deletions
11
sql/migrations/004_nws_states_to_bbox.sql
Normal file
11
sql/migrations/004_nws_states_to_bbox.sql
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
-- Migration: 004_nws_states_to_bbox
|
||||
-- Converts NWS adapter settings from states list to region bbox.
|
||||
-- Bbox covers ID/OR/WA/MT/WY/UT/NV with buffer.
|
||||
|
||||
UPDATE config.adapters
|
||||
SET settings = jsonb_set(
|
||||
settings - 'states', -- Remove states key
|
||||
'{region}',
|
||||
'{"north": 49.5, "south": 31.0, "east": -102.0, "west": -124.5}'::jsonb
|
||||
)
|
||||
WHERE name = 'nws';
|
||||
Loading…
Add table
Add a link
Reference in a new issue