Skip to content

Commit

Permalink
set search path before loading functions
Browse files Browse the repository at this point in the history
  • Loading branch information
smnorris committed Mar 1, 2024
1 parent 82e6bdd commit ec918d3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ clean_db:
mkdir -p data
$(PSQL) -f db/schemas.sql
$(PSQL) -f db/extensions.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)
$(PSQL) -f db/tables.sql
$(PSQL) -f db/views.sql
$(PSQL) -f db/functions/CDB_MakeHexagon.sql
Expand All @@ -69,8 +71,6 @@ clean_db:
$(PSQL) -f db/functions/FWA_LocateAlongInterval.sql
$(PSQL) -f db/functions/FWA_UpstreamTrace.sql
$(PSQL) -f db/functions/postgisftw.sql # pg_fs/pg_ts functions
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 ec918d3

Please sign in to comment.