mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
allow passing driver options, fixes #11718
This commit is contained in:
parent
aee1edf6b5
commit
e16a58220d
1 changed files with 7 additions and 0 deletions
|
|
@ -153,6 +153,13 @@ class ConnectionFactory {
|
|||
}
|
||||
|
||||
$connectionParams['tablePrefix'] = $config->getSystemValue('dbtableprefix', 'oc_');
|
||||
|
||||
//additional driver options, eg. for mysql ssl
|
||||
$driverOptions = $config->getSystemValue('dbdriveroptions', null);
|
||||
if ($driverOptions) {
|
||||
$connectionParams['driverOptions'] = $driverOptions;
|
||||
}
|
||||
|
||||
return $connectionParams;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue