From b627fcc754fef79c38be163c50ab86dc93525030 Mon Sep 17 00:00:00 2001 From: James Cole Date: Thu, 30 Jan 2020 04:43:54 +0100 Subject: [PATCH] Fix issue with DB creation. --- app/Console/Commands/CreateDatabase.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/Console/Commands/CreateDatabase.php b/app/Console/Commands/CreateDatabase.php index f7e24b245a..9b8e9a0366 100644 --- a/app/Console/Commands/CreateDatabase.php +++ b/app/Console/Commands/CreateDatabase.php @@ -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'));