mirror of
https://github.com/zvx-echo6/central.git
synced 2026-05-21 18:14:44 +02:00
feat(schema): add USGS quake adapter and CENTRAL_QUAKE stream
Migration 006 seeds: - config.adapters row for usgs_quake (60s cadence, PNW bbox) - config.streams row for CENTRAL_QUAKE (7d retention) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
2fd5bc01c0
commit
be307b000c
1 changed files with 23 additions and 0 deletions
23
sql/migrations/006_add_usgs_quake_adapter.sql
Normal file
23
sql/migrations/006_add_usgs_quake_adapter.sql
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
-- Migration: 006_add_usgs_quake_adapter
|
||||
-- Seeds USGS earthquake adapter configuration and CENTRAL_QUAKE stream.
|
||||
|
||||
-- Seed USGS quake adapter row
|
||||
INSERT INTO config.adapters (name, enabled, cadence_s, settings)
|
||||
VALUES (
|
||||
'usgs_quake',
|
||||
true,
|
||||
60,
|
||||
jsonb_build_object(
|
||||
'region', jsonb_build_object(
|
||||
'north', 49.5,
|
||||
'south', 31.0,
|
||||
'east', -102.0,
|
||||
'west', -124.5
|
||||
),
|
||||
'feed', 'all_hour'
|
||||
)
|
||||
);
|
||||
|
||||
-- Seed CENTRAL_QUAKE stream row (7d retention)
|
||||
INSERT INTO config.streams (name, max_age_s, max_bytes)
|
||||
VALUES ('CENTRAL_QUAKE', 604800, 1073741824);
|
||||
Loading…
Add table
Add a link
Reference in a new issue