diff options
author | Robin Appelman <icewind@owncloud.com> | 2014-05-06 14:04:22 +0200 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2014-06-03 11:18:45 +0200 |
commit | 6f71419f2b0e8e671274ca761e636ebe0a4067b3 (patch) | |
tree | 03e3748bb0f8324aee1a0923665189174fae8ea1 /lib/private/db/mdb2schemamanager.php | |
parent | a59f6818ebeffa23ad1b66652179f3592bd4931d (diff) | |
download | nextcloud-server-6f71419f2b0e8e671274ca761e636ebe0a4067b3.tar.gz nextcloud-server-6f71419f2b0e8e671274ca761e636ebe0a4067b3.zip |
Skip migration checks for all sql backends besides mysql, postgres and sqlite
Diffstat (limited to 'lib/private/db/mdb2schemamanager.php')
-rw-r--r-- | lib/private/db/mdb2schemamanager.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/private/db/mdb2schemamanager.php b/lib/private/db/mdb2schemamanager.php index 1c9b6b9d00b..1a19e737da8 100644 --- a/lib/private/db/mdb2schemamanager.php +++ b/lib/private/db/mdb2schemamanager.php @@ -8,7 +8,9 @@ namespace OC\DB; +use Doctrine\DBAL\Platforms\MySqlPlatform; use Doctrine\DBAL\Platforms\OraclePlatform; +use Doctrine\DBAL\Platforms\PostgreSqlPlatform; use Doctrine\DBAL\Platforms\SqlitePlatform; class MDB2SchemaManager { @@ -62,8 +64,10 @@ class MDB2SchemaManager { return new SQLiteMigrator($this->conn); } else if ($platform instanceof OraclePlatform) { return new OracleMigrator($this->conn); - } else { + } else if ($platform instanceof MySqlPlatform or $platform instanceof PostgreSqlPlatform) { return new Migrator($this->conn); + } else { + return new NoCheckMigrator($this->conn); } } |