Skip to content

Commit

Permalink
Allow dabase password to be null (#37418)
Browse files Browse the repository at this point in the history
The current implementation demands the password to be a string, not null. However a password is not required when working on local environments or when using socks. For that reason the password in the schema importing and exporting tooling should also allow for nullable database passwords.
  • Loading branch information
luceos authored May 19, 2021
1 parent 3945913 commit b481c3a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Illuminate/Database/Schema/MySqlSchemaState.php
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ protected function baseVariables(array $config)
'LARAVEL_LOAD_HOST' => is_array($config['host']) ? $config['host'][0] : $config['host'],
'LARAVEL_LOAD_PORT' => $config['port'] ?? '',
'LARAVEL_LOAD_USER' => $config['username'],
'LARAVEL_LOAD_PASSWORD' => $config['password'],
'LARAVEL_LOAD_PASSWORD' => $config['password'] ?? '',
'LARAVEL_LOAD_DATABASE' => $config['database'],
];
}
Expand Down

0 comments on commit b481c3a

Please sign in to comment.