Skip to content

Commit

Permalink
Upgrade script from 14.0.0-B2 to 14.0.0-RC1
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexTr committed Sep 10, 2024
1 parent eb7e9ed commit eede63a
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions upgrade/files/14.0.0.B2-14.0.0.RC1/check.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,13 @@

$mixCheckResult = 'Update can not be applied';

$sVer = $this->oDb->getOne("SELECT `version` FROM `sys_modules` WHERE `name` = 'system'");
if ('14.0.0.B2' == $sVer || '14.0.0-B2' == $sVer)
$mixCheckResult = true;
if (!(PHP_VERSION_ID >= 80100)) {
$mixCheckResult = 'This update requires a PHP version ">= 8.1.0". You are running ' . PHP_VERSION;
}
else {
$sVer = $this->oDb->getOne("SELECT `version` FROM `sys_modules` WHERE `name` = 'system'");
if ('14.0.0.B2' == $sVer || '14.0.0-B2' == $sVer)
$mixCheckResult = true;
}

return $mixCheckResult;

0 comments on commit eede63a

Please sign in to comment.