diff options
Diffstat (limited to 'tests/lib/db/mdb2schemamanager.php')
-rw-r--r-- | tests/lib/db/mdb2schemamanager.php | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/tests/lib/db/mdb2schemamanager.php b/tests/lib/db/mdb2schemamanager.php index dd9ee3adb8e..527b2cba648 100644 --- a/tests/lib/db/mdb2schemamanager.php +++ b/tests/lib/db/mdb2schemamanager.php @@ -9,6 +9,9 @@ namespace Test\DB; +use Doctrine\DBAL\Platforms\OraclePlatform; +use Doctrine\DBAL\Platforms\SQLServerPlatform; + class MDB2SchemaManager extends \PHPUnit_Framework_TestCase { public function tearDown() { @@ -22,11 +25,14 @@ class MDB2SchemaManager extends \PHPUnit_Framework_TestCase { public function testAutoIncrement() { - if (\OC::$server->getConfig()->getSystemValue('dbtype', 'sqlite') === 'oci') { + $connection = \OC_DB::getConnection(); + if ($connection->getDatabasePlatform() instanceof OraclePlatform) { $this->markTestSkipped('Adding auto increment columns in Oracle is not supported.'); } + if ($connection->getDatabasePlatform() instanceof SQLServerPlatform) { + $this->markTestSkipped('DB migration tests are not supported on MSSQL'); + } - $connection = \OC_DB::getConnection(); $manager = new \OC\DB\MDB2SchemaManager($connection); $manager->createDbFromStructure(__DIR__ . '/ts-autoincrement-before.xml'); |