Make xmet_igra_station.state column nullable

This commit is contained in:
XANTRONIX 2025-02-25 16:10:02 -05:00
parent 60f5093c63
commit 951ec6b48b
2 changed files with 4 additions and 1 deletions

View file

@ -95,7 +95,7 @@ create table xmet_igra_station (
year_start INTEGER NOT NULL,
year_end INTEGER NOT NULL,
name TEXT NOT NULL,
state TEXT NOT NULL,
state TEXT,
elevation FLOAT NOT NULL
);

View file

@ -243,6 +243,9 @@ class IGRAStation(DatabaseTable):
station.elevation = float(cols(line, 32, 37))
station.location = shapely.Point(lon, lat)
if station.state == '':
station.state = None
return station
@staticmethod