From 31ccf4f466c487b1647733f747ce2d7f3187ec3c Mon Sep 17 00:00:00 2001 From: akrherz Date: Fri, 1 Jul 2022 08:34:19 -0500 Subject: [PATCH] add more level storage refs akrherz/pyIEM#628 --- init/postgis.sql | 4 +++- upgrade/postgis/62.sql | 3 +++ 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 upgrade/postgis/62.sql diff --git a/init/postgis.sql b/init/postgis.sql index 4945532..9b76e89 100644 --- a/init/postgis.sql +++ b/init/postgis.sql @@ -5,7 +5,7 @@ CREATE EXTENSION postgis; CREATE TABLE iem_schema_manager_version( version int, updated timestamptz); -INSERT into iem_schema_manager_version values (61, now()); +INSERT into iem_schema_manager_version values (62, now()); --- --- TABLES THAT ARE LOADED VIA shp2pgsql @@ -65,6 +65,8 @@ CREATE TABLE airmet_freezing_levels( valid_at timestamptz, product_id text, level int, + lower_level int, + upper_level int, geom geometry(MultiLineString, 4326) ); CREATE INDEX airmet_freezing_levels_idx on airmet_freezing_levels(valid_at); diff --git a/upgrade/postgis/62.sql b/upgrade/postgis/62.sql new file mode 100644 index 0000000..155ac9a --- /dev/null +++ b/upgrade/postgis/62.sql @@ -0,0 +1,3 @@ +-- Storage of M_FZLVL g-airmets +ALTER TABLE airmet_freezing_levels ADD lower_level int; +ALTER TABLE airmet_freezing_levels ADD upper_level int;