mirror of
https://github.com/nextcloud/server.git
synced 2026-06-11 09:42:09 -04:00
Let doctrine/dbal try to do it
Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
parent
0b25a93717
commit
bdfe33b7fc
1 changed files with 6 additions and 6 deletions
|
|
@ -127,12 +127,12 @@ class ConnectionFactory {
|
|||
$dbName = $additionalConnectionParams['dbname'];
|
||||
|
||||
// we set the connect string as dbname and unset the host to coerce doctrine into using it as connect string
|
||||
if ($host === '') {
|
||||
$additionalConnectionParams['dbname'] = $dbName; // use dbname as easy connect name
|
||||
} else {
|
||||
$additionalConnectionParams['dbname'] = '//' . $host . (!empty($port) ? ":{$port}" : "") . '/' . $dbName;
|
||||
}
|
||||
unset($additionalConnectionParams['host']);
|
||||
// if ($host === '') {
|
||||
// $additionalConnectionParams['dbname'] = $dbName; // use dbname as easy connect name
|
||||
// } else {
|
||||
// $additionalConnectionParams['dbname'] = '//' . $host . (!empty($port) ? ":{$port}" : "") . '/' . $dbName;
|
||||
// }
|
||||
// unset($additionalConnectionParams['host']);
|
||||
break;
|
||||
|
||||
case 'sqlite3':
|
||||
|
|
|
|||
Loading…
Reference in a new issue