Merge branch 'MDL-83172-404-test' of https://github.com/meirzamoodle/moodle into MOODLE_404_STABLE
This commit is contained in:
@@ -4714,7 +4714,6 @@
|
||||
<VENDOR name="mysql" version="8.4" />
|
||||
<VENDOR name="postgres" version="14" />
|
||||
<VENDOR name="mssql" version="14.0" />
|
||||
<VENDOR name="oracle" version="19" />
|
||||
</DATABASE>
|
||||
<PHP version="8.2.0" level="required">
|
||||
</PHP>
|
||||
@@ -4892,8 +4891,6 @@
|
||||
</CUSTOM_CHECK>
|
||||
<CUSTOM_CHECK file="lib/upgradelib.php" function="check_db_prefix_length" level="required">
|
||||
</CUSTOM_CHECK>
|
||||
<CUSTOM_CHECK file="lib/upgradelib.php" function="check_oracle_usage" level="optional">
|
||||
</CUSTOM_CHECK>
|
||||
<CUSTOM_CHECK file="lib/upgradelib.php" function="check_async_backup" level="recommended">
|
||||
</CUSTOM_CHECK>
|
||||
</CUSTOM_CHECKS>
|
||||
|
||||
@@ -1053,15 +1053,16 @@ function environment_check_database($version, $env_select) {
|
||||
|
||||
$dbinfo = $DB->get_server_info();
|
||||
$current_version = normalize_version($dbinfo['version']);
|
||||
$needed_version = $vendors[$current_vendor];
|
||||
|
||||
/// Check we have a needed version
|
||||
if (!$needed_version) {
|
||||
// Check we have a needed version.
|
||||
if (empty($vendors[$current_vendor])) {
|
||||
$result->setStatus(false);
|
||||
$result->setErrorCode(NO_DATABASE_VENDOR_VERSION_FOUND);
|
||||
return $result;
|
||||
}
|
||||
|
||||
$needed_version = $vendors[$current_vendor];
|
||||
|
||||
// Check if the DB Vendor has been properly configured.
|
||||
// Hack: this is required when playing with MySQL and MariaDB since they share the same PHP module and base DB classes,
|
||||
// whilst they are slowly evolving using separate directions though MariaDB is still an "almost" drop-in replacement.
|
||||
|
||||
Reference in New Issue
Block a user