From da3278a626178b60a76ff3267dc195b5336a5fa0 Mon Sep 17 00:00:00 2001 From: Ioannis Igoumenos Date: Sun, 22 Oct 2023 21:21:08 +0300 Subject: [PATCH] use protected property instead of calling again --- app/src/Lib/Util/SchemaManager.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/Lib/Util/SchemaManager.php b/app/src/Lib/Util/SchemaManager.php index eb333a47b..3f64b2c58 100644 --- a/app/src/Lib/Util/SchemaManager.php +++ b/app/src/Lib/Util/SchemaManager.php @@ -345,7 +345,7 @@ protected function processSchema( } // This is the SQL that represents the desired state of the database - $toSql = $schema->toSql($this->conn->getDatabasePlatform()); + $toSql = $schema->toSql($this->platform); // SchemaManager provides info about the database $sm = $this->conn->createSchemaManager(); @@ -353,7 +353,7 @@ protected function processSchema( // This is the current database representation $curSchema = $sm->introspectSchema(); - $fromSql = $curSchema->toSql($this->conn->getDatabasePlatform()); + $fromSql = $curSchema->toSql($this->platform); try { // We manually call compare so we can get the SchemaDiff object. We need