Actually make 'call' primary key for nexrad_radar
This commit is contained in:
parent
9badc86e33
commit
902ef26af3
1 changed files with 3 additions and 3 deletions
|
@ -4,7 +4,7 @@ select InitSpatialMetadata(1);
|
||||||
begin transaction;
|
begin transaction;
|
||||||
|
|
||||||
create table nexrad_wfo (
|
create table nexrad_wfo (
|
||||||
code TEXT NOT NULL,
|
code TEXT PRIMARY KEY NOT NULL,
|
||||||
city TEXT NOT NULL,
|
city TEXT NOT NULL,
|
||||||
state TEXT NOT NULL,
|
state TEXT NOT NULL,
|
||||||
address TEXT NOT NULL
|
address TEXT NOT NULL
|
||||||
|
@ -15,9 +15,9 @@ select
|
||||||
CreateSpatialIndex('nexrad_wfo', 'coord');
|
CreateSpatialIndex('nexrad_wfo', 'coord');
|
||||||
|
|
||||||
create table nexrad_radar (
|
create table nexrad_radar (
|
||||||
wban INTEGER,
|
call TEXT PRIMARY KEY NOT NULL,
|
||||||
call TEXT NOT NULL,
|
|
||||||
name TEXT NOT NULL,
|
name TEXT NOT NULL,
|
||||||
|
wban INTEGER,
|
||||||
site_elevation FLOAT NOT NULL,
|
site_elevation FLOAT NOT NULL,
|
||||||
tower_height FLOAT NOT NULL
|
tower_height FLOAT NOT NULL
|
||||||
);
|
);
|
||||||
|
|
Loading…
Add table
Reference in a new issue