0000747-bug.diff

Administrator Admin, 2005-02-03 20:32

Download (2.21 KB)

View differences:

class.t3lib_install.4many.php Thu Feb 3 14:48:24 2005
464 464
                       if (is_array($diffArr[$theKey]))        {
465 465
                               foreach($diffArr[$theKey] as $table => $info) {
466 466
                                       $whole_table = array();
467
                                       if (is_array($info['fields']))  {
468
                                               foreach($info['fields'] as $fN => $fV) {
469
                                                       if ($info['whole_table'])       {
470
                                                               $whole_table[]=$fN.' '.$fV;
471
                                                       } else {
472
                                                               if ($theKey=='extra')   {
473
                                                                       if ($remove)    {
467
                                       if (is_array($info['fields']))  {
468
                                               foreach($info['fields'] as $fN => $fV) {
469
                                                       if ($info['whole_table'])       {
470
                                                                       if(strstr($fV,'auto_increment')) {
471
                                                                               $fV = eregi_replace('default \'0\'','',$fV);
472
                                                                       }
473
                                                               $whole_table[]=$fN.' '.$fV;
474
                                                       } else {
475
                                                               if ($theKey=='extra')   {if ($remove)    {
474 476
                                                                               if (substr($fN,0,strlen($deletedPrefixKey))!=$deletedPrefixKey)     {
475 477
                                                                                       $statement = 'ALTER TABLE '.$table.' CHANGE '.$fN.' '.$deletedPrefixKey.$fN.' '.$fV.';';
476 478
                                                                                       $statements['change'][md5($statement)] = $statement;