summaryrefslogtreecommitdiffstats
path: root/lib/private/Server.php
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2015-07-30 13:57:04 +0200
committerMorris Jobke <hey@morrisjobke.de>2016-10-19 00:15:01 +0200
commitcc28f82b369c2e8ebf2d0b4390379b9cda4af40b (patch)
tree3681f1e92af5a4bc0c581d3314e5cb37b00dd63a /lib/private/Server.php
parent972e560e7274cf25021b1a5095206640b063789a (diff)
downloadnextcloud-server-cc28f82b369c2e8ebf2d0b4390379b9cda4af40b.tar.gz
nextcloud-server-cc28f82b369c2e8ebf2d0b4390379b9cda4af40b.zip
Add config option to update charset of mysql to utf8mb4
* fully optional * requires additional options set in the database
Diffstat (limited to 'lib/private/Server.php')
-rw-r--r--lib/private/Server.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/Server.php b/lib/private/Server.php
index 291714b23d1..063ff4a3d3b 100644
--- a/lib/private/Server.php
+++ b/lib/private/Server.php
@@ -407,8 +407,8 @@ class Server extends ServerContainer implements IServerContainer {
return new CredentialsManager($c->getCrypto(), $c->getDatabaseConnection());
});
$this->registerService('DatabaseConnection', function (Server $c) {
- $factory = new \OC\DB\ConnectionFactory();
$systemConfig = $c->getSystemConfig();
+ $factory = new \OC\DB\ConnectionFactory($systemConfig);
$type = $systemConfig->getValue('dbtype', 'sqlite');
if (!$factory->isValidType($type)) {
throw new \OC\DatabaseException('Invalid database type');