diff --git a/db/views/wsg_crossing_summary.sql b/db/views/wsg_crossing_summary.sql index 5a361c4c..b44d3929 100644 --- a/db/views/wsg_crossing_summary.sql +++ b/db/views/wsg_crossing_summary.sql @@ -1,4 +1,4 @@ -drop view if exists bcfishpass.wsg_crossing_summary_current; +drop view if exists bcfishpass.wsg_crossing_summary_current cascade; create view bcfishpass.wsg_crossing_summary_current as select distinct on (watershed_group_code) diff --git a/db/views/wsg_linear_summary.sql b/db/views/wsg_linear_summary.sql index 064cc8c4..19d43773 100644 --- a/db/views/wsg_linear_summary.sql +++ b/db/views/wsg_linear_summary.sql @@ -1,4 +1,4 @@ -drop view if exists bcfishpass.wsg_linear_summary_current; +drop view if exists bcfishpass.wsg_linear_summary_current cascade; create view bcfishpass.wsg_linear_summary_current as select distinct on (watershed_group_code) s.model_run_id , diff --git a/model/01_access/Makefile b/model/01_access/Makefile index 308d14c3..6dd91bc3 100644 --- a/model/01_access/Makefile +++ b/model/01_access/Makefile @@ -4,9 +4,9 @@ PSQL=psql $(DATABASE_URL) -v ON_ERROR_STOP=1 # point psql to db and stop on errors # process all watershed groups -WSGS = $(shell $(PSQL) -AtX -c "SELECT watershed_group_code FROM whse_basemapping.fwa_watershed_groups_poly") +#WSGS = $(shell $(PSQL) -AtX -c "SELECT watershed_group_code FROM whse_basemapping.fwa_watershed_groups_poly") # test with just watershed groups noted in param (misses cross-wsg barreriers) -#WSGS = $(shell $(PSQL) -AtX -c "SELECT watershed_group_code FROM bcfishpass.parameters_habitat_method") +WSGS = $(shell $(PSQL) -AtX -c "SELECT watershed_group_code FROM bcfishpass.parameters_habitat_method") # define barrier table targets NATURAL_BARRIERS = .make/barriers_falls \