check history db mysql version in update

This commit is contained in:
alejandro.campos@artica.es 2024-03-19 17:22:39 +01:00
parent 7797bef59a
commit 57ae88a967
2 changed files with 4 additions and 5 deletions

View File

@ -3,4 +3,3 @@
// Versions must be specified as a string in the following formats: '8', '8.0.30', ...
$php_version = '8.2';
$mysql_version = '8';
$mysql_version_history = '8';

View File

@ -1527,11 +1527,11 @@ class Client
if (is_string($curr_mysql_version_hist) === true
&& empty($curr_mysql_version_hist) === false
) {
if (isset($mysql_version_history) === true
&& is_string($mysql_version_history) === true
&& $this->compareVersions($curr_mysql_version_hist, $mysql_version_history) < 0
if (isset($mysql_version) === true
&& is_string($mysql_version) === true
&& $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');
}
}
}