Skip to content

Commit

Permalink
Change command environment variables to work on Windows (#35164)
Browse files Browse the repository at this point in the history
  • Loading branch information
duncan-c authored Nov 9, 2020
1 parent 4df6994 commit df91bdc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Illuminate/Database/Schema/SqliteSchemaState.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ protected function appendMigrationData(string $path)
*/
public function load($path)
{
$process = $this->makeProcess($this->baseCommand().' < $LARAVEL_LOAD_PATH');
$process = $this->makeProcess($this->baseCommand().' < "${:LARAVEL_LOAD_PATH}"');

$process->mustRun(null, array_merge($this->baseVariables($this->connection->getConfig()), [
'LARAVEL_LOAD_PATH' => $path,
Expand All @@ -74,7 +74,7 @@ public function load($path)
*/
protected function baseCommand()
{
return 'sqlite3 $LARAVEL_LOAD_DATABASE';
return 'sqlite3 "${:LARAVEL_LOAD_DATABASE}"';
}

/**
Expand Down

0 comments on commit df91bdc

Please sign in to comment.