diff options
author | Victor Dubiniuk <victor.dubiniuk@gmail.com> | 2013-10-21 22:31:57 +0300 |
---|---|---|
committer | Victor Dubiniuk <victor.dubiniuk@gmail.com> | 2013-10-21 22:31:57 +0300 |
commit | 97aff7c64ee8164a6ba468b6ccb2ee05fa689cf1 (patch) | |
tree | 212eb4a48966fd4f3883d082257658ee760eba1b /lib/private/db | |
parent | e55d2359b1746e29b764a0d366afbb857b797341 (diff) | |
download | nextcloud-server-97aff7c64ee8164a6ba468b6ccb2ee05fa689cf1.tar.gz nextcloud-server-97aff7c64ee8164a6ba468b6ccb2ee05fa689cf1.zip |
Use quoteIdentifier with proper objects
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); } |