mirror of
https://github.com/koel/koel
synced 2025-02-17 13:58:28 +00:00
fix: better check for Db connection during init
This commit is contained in:
parent
9b203374a5
commit
c2052d37a7
1 changed files with 2 additions and 1 deletions
|
@ -249,7 +249,8 @@ class InitCommand extends Command
|
|||
try {
|
||||
// Make sure the config cache is cleared before another attempt.
|
||||
Artisan::call('config:clear', ['--quiet' => true]);
|
||||
$this->db->reconnect()->getPdo();
|
||||
$this->db->reconnect();
|
||||
$this->db->getDoctrineSchemaManager()->listTables();
|
||||
|
||||
break;
|
||||
} catch (Throwable $e) {
|
||||
|
|
Loading…
Add table
Reference in a new issue