Skip to content

Commit

Permalink
Update DbDumperFactory.php
Browse files Browse the repository at this point in the history
I am adding $dbConfig['connect_via_database'] in setDbName() as the package doesn't work with pgbouncer the same way it was described here:
laravel/framework#43542
  • Loading branch information
nikosv authored and freekmurze committed Feb 3, 2023
1 parent fc0326b commit f073c8c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Tasks/Backup/DbDumperFactory.php
Expand Up @@ -40,7 +40,7 @@ public static function createFromConnection(string $dbConnectionName): DbDumper

$dbDumper = static::forDriver($dbConfig['driver'] ?? '')
->setHost(Arr::first(Arr::wrap($dbConfig['host'] ?? '')))
->setDbName($dbConfig['database'])
->setDbName($dbConfig['connect_via_database'] ?? $dbConfig['database'])
->setUserName($dbConfig['username'] ?? '')
->setPassword($dbConfig['password'] ?? '');

Expand Down

0 comments on commit f073c8c

Please sign in to comment.