funtion renamecolumn wasn't upgrading the indexes, which avoided changing an indexed column name in postgres

This commit is contained in:
alpeb 2004-06-01 05:10:43 +00:00
parent d6c38c6ced
commit 892f40ff23

View File

@ -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']))
{