Actually make 'call' primary key for nexrad_radar

This commit is contained in:
XANTRONIX Industrial 2025-02-21 17:16:42 -05:00
parent 9badc86e33
commit 902ef26af3

View file

@ -4,7 +4,7 @@ select InitSpatialMetadata(1);
begin transaction;
create table nexrad_wfo (
code TEXT NOT NULL,
code TEXT PRIMARY KEY NOT NULL,
city TEXT NOT NULL,
state TEXT NOT NULL,
address TEXT NOT NULL
@ -15,9 +15,9 @@ select
CreateSpatialIndex('nexrad_wfo', 'coord');
create table nexrad_radar (
wban INTEGER,
call TEXT NOT NULL,
call TEXT PRIMARY KEY NOT NULL,
name TEXT NOT NULL,
wban INTEGER,
site_elevation FLOAT NOT NULL,
tower_height FLOAT NOT NULL
);