chore: wrangle db search_path (#5523)

This commit is contained in:
Robert Sparks 2023-04-25 11:59:58 -05:00 committed by GitHub
parent 5f36905515
commit e649bfdb3b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -7,5 +7,6 @@ dropdb -U django --if-exists datatracker
# Extensions and search paths will be loaded from the dump
echo "Import DB dump into datatracker..."
pg_restore --clean --if-exists --create --no-owner -U django -d postgres datatracker.dump
echo "alter role django set search_path=datatracker;" | psql -U django -d datatracker
echo "Done!"