Skip to content
Snippets Groups Projects
Commit 261d07c9 authored by Lukas Reschke's avatar Lukas Reschke
Browse files

Merge pull request #11084 from owncloud/no-migration-for-mssql-master

Disable database migrations for MSSQL - scripts have to be applied manua...
parents ba5d3fb9 d824d03f
No related branches found
No related tags found
No related merge requests found
......@@ -12,6 +12,7 @@ use Doctrine\DBAL\Platforms\MySqlPlatform;
use Doctrine\DBAL\Platforms\OraclePlatform;
use Doctrine\DBAL\Platforms\PostgreSqlPlatform;
use Doctrine\DBAL\Platforms\SqlitePlatform;
use Doctrine\DBAL\Platforms\SQLServerPlatform;
class MDB2SchemaManager {
/**
......@@ -65,6 +66,8 @@ class MDB2SchemaManager {
return new OracleMigrator($this->conn);
} else if ($platform instanceof MySqlPlatform) {
return new MySQLMigrator($this->conn);
} else if ($platform instanceof SQLServerPlatform) {
return new MsSqlMigrator($this->conn);
} else if ($platform instanceof PostgreSqlPlatform) {
return new Migrator($this->conn);
} else {
......
<?php
/**
* Copyright (c) 2014 Thomas Müller <deepdiver@owncloud.com>
* This file is licensed under the Affero General Public License version 3 or
* later.
* See the COPYING-README file.
*/
namespace OC\DB;
use Doctrine\DBAL\Schema\Schema;
class MsSqlMigrator extends Migrator {
/**
* @param \Doctrine\DBAL\Schema\Schema $targetSchema
*/
public function migrate(Schema $targetSchema) {
throw new MigrationException('',
'Database migration is required to continue operations. Please contact support@owncloud.com to get the required sql migration scripts to be applied.');
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment