Browse Source

Update sys_data_done.php

develop
叙述、别离 1 month ago
parent
commit
2a98a7fec7
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      src/admin/sys_data_done.php

+ 2
- 2
src/admin/sys_data_done.php View File

@@ -73,10 +73,10 @@ if ($dopost == 'bak') {
$dsql->Execute('me');
$row = $dsql->GetArray('me', MYSQL_BOTH);
//去除AUTO_INCREMENT
$row[1] = preg_replace("#AUTO_INCREMENT=([0-9]{1,})[ \r\n\t]{1,}#i", "", $row[1]);
$row[1] = preg_replace("#AUTO_INCREMENT=([0-9]{1,})[\r\n]{1,}#i", "", $row[1]);
//4.1以下版本备份为低版本
if ($datatype == 4.0 && $mysql_version > 4.0) {
$eng1 = "#ENGINE=MyISAM[ \r\n\t]{1,}DEFAULT[ \r\n\t]{1,}CHARSET=".$cfg_db_language."#i";
$eng1 = "#ENGINE=MyISAM[\r\n]{1,}DEFAULT[\r\n]{1,}CHARSET=".$cfg_db_language."#i";
$tableStruct = preg_replace($eng1, "TYPE=MyISAM", $row[1]);
}
//4.1以下版本备份为高版本


Loading…
Cancel
Save