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

@@ -52,4 +52,9 @@ final class Version20190930165521 extends AbstractMigration
$schema->getTable('short_urls')->dropColumn('domain_id');
$schema->dropTable('domains');
}
public function isTransactional(): bool
{
return $this->connection->getDatabasePlatform()->getName() !== 'mysql';
}
}