check history db mysql version in update
This commit is contained in:
parent
7797bef59a
commit
57ae88a967
|
@ -3,4 +3,3 @@
|
||||||
// Versions must be specified as a string in the following formats: '8', '8.0.30', ...
|
// Versions must be specified as a string in the following formats: '8', '8.0.30', ...
|
||||||
$php_version = '8.2';
|
$php_version = '8.2';
|
||||||
$mysql_version = '8';
|
$mysql_version = '8';
|
||||||
$mysql_version_history = '8';
|
|
||||||
|
|
|
@ -1527,11 +1527,11 @@ class Client
|
||||||
if (is_string($curr_mysql_version_hist) === true
|
if (is_string($curr_mysql_version_hist) === true
|
||||||
&& empty($curr_mysql_version_hist) === false
|
&& empty($curr_mysql_version_hist) === false
|
||||||
) {
|
) {
|
||||||
if (isset($mysql_version_history) === true
|
if (isset($mysql_version) === true
|
||||||
&& is_string($mysql_version_history) === true
|
&& is_string($mysql_version) === true
|
||||||
&& $this->compareVersions($curr_mysql_version_hist, $mysql_version_history) < 0
|
&& $this->compareVersions($curr_mysql_version_hist, $mysql_version) < 0
|
||||||
) {
|
) {
|
||||||
throw new \Exception('MySQL version (history database) >= '.$mysql_version_history.' is required');
|
throw new \Exception('MySQL version (history database) >= '.$mysql_version.' is required');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue