Merge branch 'master' of https://gitlab.zcorp.cc/easycorp/zentaopms into importExport

This commit is contained in:
tanghucheng
2022-08-02 17:50:50 +08:00
14 changed files with 610 additions and 278 deletions
+15
View File
@@ -530,6 +530,8 @@ class upgradeModel extends model
break;
case '17_3':
$this->processBugLinkBug();
case '17_4':
$this->changeSearchTableEngine();
}
$this->deletePatch();
@@ -6735,4 +6737,17 @@ class upgradeModel extends model
return !dao::isError();
}
/**
* Change search table engine.
*
* @access public
* @return void
*/
public function changeSearchTableEngine()
{
$mysqlVersion = $this->loadModel('install')->getMysqlVersion();
if($mysqlVersion >= 5.6) $this->dao->exec("ALTER TABLE " . TABLE_SEARCHINDEX . " ENGINE='InnoDB'");
return true;
}
}