aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/DB/MySQLMigrator.php
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2021-03-17 21:29:19 +0100
committerGitHub <noreply@github.com>2021-03-17 21:29:19 +0100
commit37feee4e873b74413785ccb19f070dc33b66c338 (patch)
tree3bc1340be7e19875e65c515770a9ea9e1bc5e0ea /lib/private/DB/MySQLMigrator.php
parent459e0b311bc1af926789f31e28932df7e0eec6bb (diff)
parenta2f3077ee802b4b291ba4f846bfceb69ec0f225f (diff)
downloadnextcloud-server-37feee4e873b74413785ccb19f070dc33b66c338.tar.gz
nextcloud-server-37feee4e873b74413785ccb19f070dc33b66c338.zip
Merge pull request #24384 from nextcloud/cleanup/remove-old-migration-check
Remove dead code from checking core/apps before upgrades
Diffstat (limited to 'lib/private/DB/MySQLMigrator.php')
-rw-r--r--lib/private/DB/MySQLMigrator.php22
1 files changed, 0 insertions, 22 deletions
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');
- }
}