diff options
author | Morris Jobke <hey@morrisjobke.de> | 2014-12-22 10:43:56 +0100 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2014-12-22 10:47:10 +0100 |
commit | de25084defa361e6d85af1d469b4b59e8a69c694 (patch) | |
tree | dd284abc6192230ade3be822431bef8e93b5abff /lib/private/db/mdb2schemamanager.php | |
parent | ad8d55c3274e81dd4fd92b41ac5d6ef5c39febf3 (diff) | |
download | nextcloud-server-de25084defa361e6d85af1d469b4b59e8a69c694.tar.gz nextcloud-server-de25084defa361e6d85af1d469b4b59e8a69c694.zip |
inject \OCP\IConfig instance in migrator
Diffstat (limited to 'lib/private/db/mdb2schemamanager.php')
-rw-r--r-- | lib/private/db/mdb2schemamanager.php | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/private/db/mdb2schemamanager.php b/lib/private/db/mdb2schemamanager.php index d90c8525a7b..358360d0b46 100644 --- a/lib/private/db/mdb2schemamanager.php +++ b/lib/private/db/mdb2schemamanager.php @@ -58,19 +58,19 @@ class MDB2SchemaManager { public function getMigrator() { $random = \OC::$server->getSecureRandom()->getMediumStrengthGenerator(); $platform = $this->conn->getDatabasePlatform(); + $config = \OC::$server->getConfig(); if ($platform instanceof SqlitePlatform) { - $config = \OC::$server->getConfig(); return new SQLiteMigrator($this->conn, $random, $config); } else if ($platform instanceof OraclePlatform) { - return new OracleMigrator($this->conn, $random); + return new OracleMigrator($this->conn, $random, $config); } else if ($platform instanceof MySqlPlatform) { - return new MySQLMigrator($this->conn, $random); + return new MySQLMigrator($this->conn, $random, $config); } else if ($platform instanceof SQLServerPlatform) { - return new MsSqlMigrator($this->conn, $random); + return new MsSqlMigrator($this->conn, $random, $config); } else if ($platform instanceof PostgreSqlPlatform) { - return new Migrator($this->conn, $random); + return new Migrator($this->conn, $random, $config); } else { - return new NoCheckMigrator($this->conn, $random); + return new NoCheckMigrator($this->conn, $random, $config); } } |