diff --git a/data/migrations/Version20230130090946.php b/data/migrations/Version20230130090946.php index 4c78788b..49e6d9bb 100644 --- a/data/migrations/Version20230130090946.php +++ b/data/migrations/Version20230130090946.php @@ -4,6 +4,7 @@ declare(strict_types=1); namespace ShlinkMigrations; +use Doctrine\DBAL\Platforms\MySQLPlatform; use Doctrine\DBAL\Platforms\SQLServerPlatform; use Doctrine\DBAL\Schema\Schema; use Doctrine\Migrations\AbstractMigration; @@ -39,7 +40,7 @@ final class Version20230130090946 extends AbstractMigration public function isTransactional(): bool { - return false; + return ! ($this->connection->getDatabasePlatform() instanceof MySQLPlatform); } private function isMsSql(): bool