* Call getDatabaseVersion instead of getMysqlVersion.

This commit is contained in:
liugang
2023-04-06 02:05:02 +00:00
parent 80442281d6
commit 93e71f8861
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -506,7 +506,7 @@ class admin extends control
if(stripos($table, 'searchindex') !== false)
{
$mysqlVersion = $this->loadModel('install')->getMysqlVersion();
$mysqlVersion = $this->loadModel('install')->getDatabaseVersion();
if($mysqlVersion < 5.6) continue;
}
+1 -1
View File
@@ -2008,7 +2008,7 @@ class upgradeModel extends model
if(!file_exists($sqlFile)) return false;
$this->saveLogs('Run Method ' . __FUNCTION__);
$mysqlVersion = $this->loadModel('install')->getMysqlVersion();
$mysqlVersion = $this->loadModel('install')->getDatabaseVersion();
$ignoreCode = '|1050|1054|1060|1091|1061|';
/* Read the sql file to lines, remove the comment lines, then join theme by ';'. */