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