From fb572d5abbd1b74d7a697c77205678b43d434b81 Mon Sep 17 00:00:00 2001 From: Alejandro Celaya Date: Mon, 30 Jan 2023 10:52:07 +0100 Subject: [PATCH] Fix accidentally removed statement in new migration --- data/migrations/Version20230130090946.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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