diff options
author | Vincent Petry <pvince81@owncloud.com> | 2014-02-26 16:26:16 +0100 |
---|---|---|
committer | Vincent Petry <pvince81@owncloud.com> | 2014-02-26 16:30:38 +0100 |
commit | 1d0e45e179f845385ded6926559f66ac5c68b2d3 (patch) | |
tree | 33f6de3c3d27d5feadd2a9cc66b580a6ca907041 /lib | |
parent | b4f154f9b4e76ac237c66705ffb9b5ab976352ee (diff) | |
download | nextcloud-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.php | 3 |
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) { |