Skip to content

Commit

Permalink
use protected property instead of calling again
Browse files Browse the repository at this point in the history
  • Loading branch information
Ioannis Igoumenos committed Oct 22, 2023
1 parent 4a393af commit da3278a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/src/Lib/Util/SchemaManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -345,15 +345,15 @@ 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();

// 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
Expand Down

0 comments on commit da3278a

Please sign in to comment.