Use quoteIdentifier with proper objects

This commit is contained in:
Victor Dubiniuk 2013-10-21 22:31:57 +03:00
parent e55d2359b1
commit 97aff7c64e
1 changed files with 5 additions and 0 deletions

View File

@ -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);
}