From abaa84b663a376368313497a65d2559cfe89143e Mon Sep 17 00:00:00 2001 From: rihardssceredins Date: Mon, 5 Oct 2020 20:02:19 +0300 Subject: [PATCH] Add --no-owner and --no-acl to avoid owner/permission issues when restoring schema --- src/Illuminate/Database/Schema/PostgresSchemaState.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Illuminate/Database/Schema/PostgresSchemaState.php b/src/Illuminate/Database/Schema/PostgresSchemaState.php index b87e2d01eff6..6236eea77417 100644 --- a/src/Illuminate/Database/Schema/PostgresSchemaState.php +++ b/src/Illuminate/Database/Schema/PostgresSchemaState.php @@ -65,7 +65,7 @@ public function load($path) */ protected function baseDumpCommand() { - return 'PGPASSWORD=$LARAVEL_LOAD_PASSWORD pg_dump -Fc --host=$LARAVEL_LOAD_HOST --port=$LARAVEL_LOAD_PORT --username=$LARAVEL_LOAD_USER $LARAVEL_LOAD_DATABASE'; + return 'PGPASSWORD=$LARAVEL_LOAD_PASSWORD pg_dump --no-owner --no-acl -Fc --host=$LARAVEL_LOAD_HOST --port=$LARAVEL_LOAD_PORT --username=$LARAVEL_LOAD_USER $LARAVEL_LOAD_DATABASE'; } /**