Use quoteIdentifier with proper objects
This commit is contained in:
parent
e55d2359b1
commit
97aff7c64e
1 changed files with 5 additions and 0 deletions
|
@ -77,6 +77,11 @@ class MDB2SchemaManager {
|
|||
$comparator = new \Doctrine\DBAL\Schema\Comparator();
|
||||
$schemaDiff = $comparator->compare($fromSchema, $toSchema);
|
||||
|
||||
$platform = $this->conn->getDatabasePlatform();
|
||||
foreach($schemaDiff->changedTables as $tableDiff) {
|
||||
$tableDiff->name = $platform->quoteIdentifier($tableDiff->name);
|
||||
}
|
||||
|
||||
if ($generateSql) {
|
||||
return $this->generateChangeScript($schemaDiff);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue