Skip to content

Commit

Permalink
feat: restore the imported database to the service's database
Browse files Browse the repository at this point in the history
Refs #207
  • Loading branch information
josegonzalez committed Sep 13, 2021
1 parent 4cef2b9 commit 0387c2d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion functions
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ service_import() {
if [[ -t 0 ]]; then
dokku_log_fail "No data provided on stdin."
fi
docker exec -i "$SERVICE_NAME" env PGPASSWORD="$PASSWORD" pg_restore -h localhost -cO --if-exists -d "$DATABASE_NAME" -U postgres -w
docker exec -i "$SERVICE_NAME" env PGPASSWORD="$PASSWORD" pg_restore -h localhost -cO --if-exists -C -d "$DATABASE_NAME" -U postgres -w
}

service_start() {
Expand Down

0 comments on commit 0387c2d

Please sign in to comment.