Skip to content

Commit

Permalink
change placeholder of schema dump commandline according to symfony pl…
Browse files Browse the repository at this point in the history
…aceholder regex (#34261)
  • Loading branch information
Hesammousavi authored Sep 10, 2020
1 parent 257b95c commit bffaf8d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Illuminate/Database/Schema/MySqlSchemaState.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class MySqlSchemaState extends SchemaState
public function dump($path)
{
$this->executeDumpProcess($this->makeProcess(
$this->baseDumpCommand().' --routines --result-file=$LARAVEL_LOAD_PATH --no-data'
$this->baseDumpCommand().' --routines --result-file="${:LARAVEL_LOAD_PATH}" --no-data'
), $this->output, array_merge($this->baseVariables($this->connection->getConfig()), [
'LARAVEL_LOAD_PATH' => $path,
]));
Expand Down Expand Up @@ -83,7 +83,7 @@ protected function baseDumpCommand()
{
$gtidPurged = $this->connection->isMaria() ? '' : '--set-gtid-purged=OFF';

return 'mysqldump '.$gtidPurged.' --column-statistics=0 --skip-add-drop-table --skip-add-locks --skip-comments --skip-set-charset --tz-utc --host=$LARAVEL_LOAD_HOST --port=$LARAVEL_LOAD_PORT --user=$LARAVEL_LOAD_USER --password=$LARAVEL_LOAD_PASSWORD $LARAVEL_LOAD_DATABASE';
return 'mysqldump '.$gtidPurged.' --column-statistics=0 --skip-add-drop-table --skip-add-locks --skip-comments --skip-set-charset --tz-utc --host="${:LARAVEL_LOAD_HOST}" --port="${:LARAVEL_LOAD_PORT}" --user="${:LARAVEL_LOAD_USER}" --password="${:LARAVEL_LOAD_PASSWORD}" "${:LARAVEL_LOAD_DATABASE}"';
}

/**
Expand Down

0 comments on commit bffaf8d

Please sign in to comment.