summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2014-02-26 16:26:16 +0100
committerVincent Petry <pvince81@owncloud.com>2014-02-26 16:30:38 +0100
commit1d0e45e179f845385ded6926559f66ac5c68b2d3 (patch)
tree33f6de3c3d27d5feadd2a9cc66b580a6ca907041 /lib
parentb4f154f9b4e76ac237c66705ffb9b5ab976352ee (diff)
downloadnextcloud-server-1d0e45e179f845385ded6926559f66ac5c68b2d3.tar.gz
nextcloud-server-1d0e45e179f845385ded6926559f66ac5c68b2d3.zip
Also quote old column name during DB migration
This fixes alter table commands that didn't quote the old column name
Diffstat (limited to 'lib')
-rw-r--r--lib/private/db/mdb2schemamanager.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/private/db/mdb2schemamanager.php b/lib/private/db/mdb2schemamanager.php
index 6378c769055..f05e18a3832 100644
--- a/lib/private/db/mdb2schemamanager.php
+++ b/lib/private/db/mdb2schemamanager.php
@@ -82,6 +82,9 @@ class MDB2SchemaManager {
$platform = $this->conn->getDatabasePlatform();
foreach($schemaDiff->changedTables as $tableDiff) {
$tableDiff->name = $platform->quoteIdentifier($tableDiff->name);
+ foreach($tableDiff->changedColumns as $column) {
+ $column->oldColumnName = $platform->quoteIdentifier($column->oldColumnName);
+ }
}
if ($generateSql) {