Skip to content

Commit

Permalink
reorder db build
Browse files Browse the repository at this point in the history
  • Loading branch information
smnorris committed Jan 5, 2024
1 parent 4c7f28e commit 458ad56
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion db/functions/wsg_crossing_summary.sql
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

CREATE FUNCTION bcfishpass.wsg_crossings_summary()
RETURNS table (
watershed_group_code text,
watershed_group_code text,
crossing_feature_type text,
n_crossings_total integer,
n_passable_total integer,
Expand Down
1 change: 1 addition & 0 deletions db/functions/wsg_linear_summary.sql
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
-- - spawning or rearing habitat not isolated by dam or a known pscis barrier (accessible_a)
-- - spawning or rearing habitat not isolated by all anthropogenic barriers (observed and modelled) (accessible_b)

DROP FUNCTION bcfishpass.wsg_linear_summary();
CREATE FUNCTION bcfishpass.wsg_linear_summary()
RETURNS table (
watershed_group_code text,
Expand Down
4 changes: 2 additions & 2 deletions db/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ for sql in tables/*.sql ; do
$PSQL -f "$sql"
done

for sql in functions/*.sql ; do
for sql in views/*.sql ; do
$PSQL -f "$sql"
done

for sql in views/*.sql ; do
for sql in functions/*.sql ; do
$PSQL -f "$sql"
done

0 comments on commit 458ad56

Please sign in to comment.