--- class.t3lib_install.php Thu Feb 3 15:51:41 2005 +++ class.t3lib_install.4many.php Thu Feb 3 14:48:24 2005 @@ -464,13 +464,15 @@ 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;