Skip to content

Commit

Permalink
Merge pull request #100 from akrherz/gh628_multiple_freezing
Browse files Browse the repository at this point in the history
add more level storage
  • Loading branch information
akrherz authored Jul 1, 2022
2 parents 525889a + 31ccf4f commit 85cd2c7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 3 additions & 1 deletion init/postgis.sql
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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);
Expand Down
3 changes: 3 additions & 0 deletions upgrade/postgis/62.sql
Original file line number Diff line number Diff line change
@@ -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;

0 comments on commit 85cd2c7

Please sign in to comment.