diff options
author | Vincent Petry <pvince81@owncloud.com> | 2014-02-26 16:26:16 +0100 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2014-02-27 09:09:16 +0100 |
commit | 22adc397dea060150e6982ba9dda1483eebbfa67 (patch) | |
tree | e12bc051a09274bf15ad18c4f5693ea061975ddd | |
parent | 230e5e3788f8289447602b70e2445c134e532e0d (diff) | |
download | nextcloud-server-22adc397dea060150e6982ba9dda1483eebbfa67.tar.gz nextcloud-server-22adc397dea060150e6982ba9dda1483eebbfa67.zip |
Also quote old column name during DB migration
This fixes alter table commands that didn't quote the old column name
-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 c050d47b499..aaf2ea543b9 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) { |