From ddc5cf7391b6928744309df7c3dd87937021972c Mon Sep 17 00:00:00 2001 From: Christopher Georg <christopher.georg@sr-travel.de> Date: Fri, 23 Feb 2024 10:07:11 +0100 Subject: [PATCH] feat: fix removed function in doctrine/dbal 4 --- src/Services/DatabaseTools/ORMDatabaseTool.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Services/DatabaseTools/ORMDatabaseTool.php b/src/Services/DatabaseTools/ORMDatabaseTool.php index 54c227fc..0a0829fc 100644 --- a/src/Services/DatabaseTools/ORMDatabaseTool.php +++ b/src/Services/DatabaseTools/ORMDatabaseTool.php @@ -180,11 +180,11 @@ protected function createDatabaseIfNotExists(): void try { if (!\in_array($dbName, $tmpConnection->createSchemaManager()->listDatabases(), true)) { - $tmpConnection->createSchemaManager()->createDatabase($dbName); } - } catch (\Doctrine\DBAL\Platforms\Exception\NotSupported $e) - {} + } catch (\Doctrine\DBAL\Platforms\Exception\NotSupported $e) { + + } $tmpConnection->close(); }