[Pkg-owncloud-commits] [owncloud] 14/44: Also quote old column name during DB migration

David Prévot taffit at moszumanska.debian.org
Fri Mar 7 13:27:23 UTC 2014


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository owncloud.

commit 1d0e45e179f845385ded6926559f66ac5c68b2d3
Author: Vincent Petry <pvince81 at owncloud.com>
Date:   Wed Feb 26 16:26:16 2014 +0100

    Also quote old column name during DB migration
    
    This fixes alter table commands that didn't quote the old column name
---
 lib/private/db/mdb2schemamanager.php | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/lib/private/db/mdb2schemamanager.php b/lib/private/db/mdb2schemamanager.php
index 6378c76..f05e18a 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) {

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git



More information about the Pkg-owncloud-commits mailing list