Skip to content

Commit

Permalink
Issue429 (#430)
Browse files Browse the repository at this point in the history
* fix #429

* include dam name in dam barrier tables
  • Loading branch information
smnorris authored Dec 11, 2023
1 parent 6bf1114 commit 360d858
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion model/01_access/sql/barriers_dams.sql
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ INSERT INTO bcfishpass.barriers_dams
SELECT
aggregated_crossings_id,
crossing_feature_type,
crossing_source as barrier_name,
dam_name as barrier_name,
linear_feature_id,
blue_line_key,
watershed_key,
Expand Down
4 changes: 2 additions & 2 deletions model/01_access/sql/barriers_dams_hydro.sql
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ INSERT INTO bcfishpass.barriers_dams_hydro
SELECT
aggregated_crossings_id,
crossing_feature_type,
crossing_source as barrier_name,
dam_name as barrier_name,
linear_feature_id,
blue_line_key,
watershed_key,
Expand All @@ -29,7 +29,7 @@ FROM bcfishpass.crossings
WHERE
dam_id IS NOT NULL AND
dam_use = 'Hydroelectricity' AND
barrier_status = 'BARRIER' AND
barrier_status in ('PARTIAL', 'BARRIER') AND
blue_line_key = watershed_key AND -- do not include side channel features as barriers
watershed_group_code = :'wsg'
ORDER BY watershed_group_code, blue_line_key, downstream_route_measure;

0 comments on commit 360d858

Please sign in to comment.