From a2f3077ee802b4b291ba4f846bfceb69ec0f225f Mon Sep 17 00:00:00 2001 From: Julius Härtl Date: Thu, 26 Nov 2020 11:10:41 +0100 Subject: Skip db migration simulation for core schema changes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Julius Härtl --- lib/private/DB/MySQLMigrator.php | 22 ---------------------- 1 file changed, 22 deletions(-) (limited to 'lib/private/DB/MySQLMigrator.php') diff --git a/lib/private/DB/MySQLMigrator.php b/lib/private/DB/MySQLMigrator.php index 58c54683a3a..00c29d7a6f6 100644 --- a/lib/private/DB/MySQLMigrator.php +++ b/lib/private/DB/MySQLMigrator.php @@ -27,7 +27,6 @@ namespace OC\DB; use Doctrine\DBAL\Schema\Schema; -use Doctrine\DBAL\Schema\Table; class MySQLMigrator extends Migrator { /** @@ -52,25 +51,4 @@ class MySQLMigrator extends Migrator { return $schemaDiff; } - - /** - * Speed up migration test by disabling autocommit and unique indexes check - * - * @param \Doctrine\DBAL\Schema\Table $table - * @throws \OC\DB\MigrationException - */ - protected function checkTableMigrate(Table $table) { - $this->connection->exec('SET autocommit=0'); - $this->connection->exec('SET unique_checks=0'); - - try { - parent::checkTableMigrate($table); - } catch (\Exception $e) { - $this->connection->exec('SET unique_checks=1'); - $this->connection->exec('SET autocommit=1'); - throw new MigrationException($table->getName(), $e->getMessage()); - } - $this->connection->exec('SET unique_checks=1'); - $this->connection->exec('SET autocommit=1'); - } } -- cgit v1.2.3