Project

General

Profile

Bug #14528 ยป 0000747-bug.diff

Administrator Admin, 2005-02-03 20:32

View differences:

class.t3lib_install.4many.php Thu Feb 3 14:48:24 2005
if (is_array($diffArr[$theKey])) {
foreach($diffArr[$theKey] as $table => $info) {
$whole_table = array();
if (is_array($info['fields'])) {
foreach($info['fields'] as $fN => $fV) {
if ($info['whole_table']) {
$whole_table[]=$fN.' '.$fV;
} else {
if ($theKey=='extra') {
if ($remove) {
if (is_array($info['fields'])) {
foreach($info['fields'] as $fN => $fV) {
if ($info['whole_table']) {
if(strstr($fV,'auto_increment')) {
$fV = eregi_replace('default \'0\'','',$fV);
}
$whole_table[]=$fN.' '.$fV;
} else {
if ($theKey=='extra') {if ($remove) {
if (substr($fN,0,strlen($deletedPrefixKey))!=$deletedPrefixKey) {
$statement = 'ALTER TABLE '.$table.' CHANGE '.$fN.' '.$deletedPrefixKey.$fN.' '.$fV.';';
$statements['change'][md5($statement)] = $statement;
    (1-1/1)