Ensured migrations are not transactional when run in mysql

This commit is contained in:
Alejandro Celaya
2021-10-23 16:02:29 +02:00
parent bd3a59e9ca
commit cd35770d26
33 changed files with 158 additions and 2 deletions

View File

@@ -24,4 +24,9 @@ final class Version20200503170404 extends AbstractMigration
$this->skipIf(! $visits->hasIndex(self::INDEX_NAME));
$visits->dropIndex(self::INDEX_NAME);
}
public function isTransactional(): bool
{
return $this->connection->getDatabasePlatform()->getName() !== 'mysql';
}
}