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