mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-19 10:53:31 +00:00
Fix issue with DB creation.
This commit is contained in:
@@ -54,7 +54,8 @@ class CreateDatabase extends Command
|
|||||||
public function handle()
|
public function handle()
|
||||||
{
|
{
|
||||||
if ('mysql' !== env('DB_CONNECTION')) {
|
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:
|
// try to set up a raw connection:
|
||||||
$dsn = sprintf('mysql:host=%s;charset=utf8mb4', env('DB_HOST'));
|
$dsn = sprintf('mysql:host=%s;charset=utf8mb4', env('DB_HOST'));
|
||||||
|
Reference in New Issue
Block a user