chore: update db-import db name

This commit is contained in:
Nicolas Giard 2023-04-18 19:22:39 -04:00 committed by GitHub
parent ee2ed27e9f
commit 2ef6985674
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,11 +1,11 @@
#!/bin/bash
set -e
echo "Drop dummy ietf DB if it exists..."
dropdb -U django --if-exists ietf
echo "Drop dummy datatracker DB if it exists..."
dropdb -U django --if-exists datatracker
# Extensions and search paths will be loaded from the dump
echo "Import DB dump into ietf..."
pg_restore --clean --if-exists --create --no-owner -U django -d postgres ietf.dump
echo "Import DB dump into datatracker..."
pg_restore --clean --if-exists --create --no-owner -U django -d postgres datatracker.dump
echo "Done!"