mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-26 16:48:49 +01:00
funtion renamecolumn wasn't upgrading the indexes, which avoided changing an indexed column name in postgres
This commit is contained in:
parent
d6c38c6ced
commit
892f40ff23
@ -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']))
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user