Fix issue with DB creation.

This commit is contained in:
James Cole 2020-01-30 04:43:54 +01:00
parent 6fa4666336
commit b627fcc754
No known key found for this signature in database
GPG Key ID: C16961E655E74B5E

View File

@ -54,7 +54,8 @@ class CreateDatabase extends Command
public function handle()
{
if ('mysql' !== env('DB_CONNECTION')) {
$this->info('This command currently applies to MySQL connections only.');
$this->info(sprintf('CreateDB does not apply to "%s", skipped.', env('DB_CONNECTION')));
return 0;
}
// try to set up a raw connection:
$dsn = sprintf('mysql:host=%s;charset=utf8mb4', env('DB_HOST'));