Skip to content

Commit

Permalink
Moved wcrp column creation
Browse files Browse the repository at this point in the history
- Added statement to add the wcrp column to bcfishpass.wcrp_watersheds
- removed the change from db/v0.5.0/sql/tables/wcrp.sql
  • Loading branch information
andrewp-CWF committed Nov 4, 2024
1 parent 24bbc64 commit 97cc8b5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 1 addition & 2 deletions db/v0.5.0/sql/tables/wcrp.sql
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@ create table bcfishpass.wcrp_watersheds
sk boolean,
st boolean,
wct boolean,
notes text,
wcrp varchar(32)
notes text
);


Expand Down
3 changes: 3 additions & 0 deletions db/v0.5.3/sql/join_tracking_table_crossings_vw.sql
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
-- Add the wcrp column to the wcrp_watersheds table
alter table bcfishpass.wcrp_watersheds
add column wcrp varchar(32);

-- This function joins the tracking table to bcfishpass.crossings_wcrp_vw on the barrier ID
create or replace function wcrp_hors.join_tracking_table_crossings_wcrp_vw(p_wcrp text)
Expand Down

0 comments on commit 97cc8b5

Please sign in to comment.