diff options
Diffstat (limited to 'lib/private/db')
-rw-r--r-- | lib/private/db/mdb2schemamanager.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/private/db/mdb2schemamanager.php b/lib/private/db/mdb2schemamanager.php index 8a818466f74..416e2f55426 100644 --- a/lib/private/db/mdb2schemamanager.php +++ b/lib/private/db/mdb2schemamanager.php @@ -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); } |