Merge branch 'master' of https://gitlab.zcorp.cc/easycorp/zentaopms into importExport
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user