Skip to content
Snippets Groups Projects
Commit 97aff7c6 authored by Victor Dubiniuk's avatar Victor Dubiniuk
Browse files

Use quoteIdentifier with proper objects

parent e55d2359
No related branches found
No related tags found
No related merge requests found
......@@ -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);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment