Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add HUC12 average_slope_ratio storage #117

Merged
merged 1 commit into from
Feb 20, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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;