Skip to content

Commit 0387c2d

Browse files
committed
feat: restore the imported database to the service's database
Refs #207
1 parent 4cef2b9 commit 0387c2d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

functions

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ service_import() {
125125
if [[ -t 0 ]]; then
126126
dokku_log_fail "No data provided on stdin."
127127
fi
128-
docker exec -i "$SERVICE_NAME" env PGPASSWORD="$PASSWORD" pg_restore -h localhost -cO --if-exists -d "$DATABASE_NAME" -U postgres -w
128+
docker exec -i "$SERVICE_NAME" env PGPASSWORD="$PASSWORD" pg_restore -h localhost -cO --if-exists -C -d "$DATABASE_NAME" -U postgres -w
129129
}
130130

131131
service_start() {

0 commit comments

Comments
 (0)