diff --git a/phpgwapi/inc/class.schema_proc_array.inc.php b/phpgwapi/inc/class.schema_proc_array.inc.php index d610d13653..9eb086077d 100644 --- a/phpgwapi/inc/class.schema_proc_array.inc.php +++ b/phpgwapi/inc/class.schema_proc_array.inc.php @@ -132,6 +132,15 @@ } } + reset($aTables[$sTableName]['ix']); + while(list($key,$sColumnName) = each($aTables[$sTableName]['ix'])) + { + if ($sColumnName == $sOldColumnName) + { + $aTables[$sTableName]['ix'][$key] = $sNewColumnName; + } + } + reset($aTables[$sTableName]['uc']); while(list($key, $sColumnName) = each($aTables[$sTableName]['uc'])) {