Skip to content

Commit

Permalink
Merge pull request #117 from akrherz/gh18
Browse files Browse the repository at this point in the history
add HUC12 average_slope_ratio storage
  • Loading branch information
akrherz authored Feb 20, 2023
2 parents 294558c + df7e78b commit 0cc75fd
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
9 changes: 5 additions & 4 deletions init/idep.sql
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ CREATE EXTENSION postgis;
-- Boilerplate IEM schema_manager_version, the version gets incremented each
-- time we make an upgrade script
CREATE TABLE iem_schema_manager_version(
version int,
updated timestamptz);
version int,
updated timestamptz);
ALTER TABLE iem_schema_manager_version OWNER to mesonet;
INSERT into iem_schema_manager_version values (26, now());
INSERT into iem_schema_manager_version values (27, now());

-- GSSURGO Metadata
CREATE TABLE gssurgo(
Expand Down Expand Up @@ -47,7 +47,8 @@ CREATE TABLE huc12(
scenario int REFERENCES scenarios(id),
ugc char(6),
mlra_id smallint,
dominant_tillage smallint
dominant_tillage smallint,
average_slope_ratio real
);
CREATE UNIQUE INDEX huc12_idx on huc12(huc_12, scenario);
GRANT SELECT on huc12 to nobody;
Expand Down
2 changes: 2 additions & 0 deletions upgrade/idep/27.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
--
alter table huc12 add average_slope_ratio real;

0 comments on commit 0cc75fd

Please sign in to comment.