Skip to content

Commit

Permalink
set search path in makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
smnorris committed Jan 14, 2024
1 parent ffb8ab5 commit b09e79a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,9 @@ clean_db:
$(PSQL) -f sql/functions/FWA_Downstream.sql
$(PSQL) -f sql/functions/FWA_Upstream.sql
$(PSQL) -f sql/tables/spatial/schema.sql
$(PSQL) -f sql/tables/non_spatial/schema.sql
$(PSQL) -f sql/tables/non_spatial/schema.sql
echo "ALTER DATABASE :db SET search_path TO public,whse_basemapping,usgs,hydrosheds" | \
$(PSQL) -v db=$(shell echo $(DATABASE_URL) | cut -d "/" -f 4)
touch $@

# download and rename (so we do not have to unzip)
Expand Down

0 comments on commit b09e79a

Please sign in to comment.