mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 08:56:36 +02:00
Only launch the old upgrade if it exists. It doesn'texist for new DB
flavours and modules.
This commit is contained in:
parent
ec87d0474f
commit
3430fb2993
1 changed files with 5 additions and 2 deletions
|
@ -217,8 +217,11 @@
|
||||||
upgrade_log_start();
|
upgrade_log_start();
|
||||||
print_heading($strdatabasechecking);
|
print_heading($strdatabasechecking);
|
||||||
$db->debug=true;
|
$db->debug=true;
|
||||||
/// Launch the old main upgrade
|
/// Launch the old main upgrade (if exists)
|
||||||
|
$status = true;
|
||||||
|
if (function_exists('main_upgrade')) {
|
||||||
$status = main_upgrade($CFG->version);
|
$status = main_upgrade($CFG->version);
|
||||||
|
}
|
||||||
/// If succesful and exists launch the new main upgrade (XMLDB), called xmldb_main_upgrade
|
/// If succesful and exists launch the new main upgrade (XMLDB), called xmldb_main_upgrade
|
||||||
if ($status && function_exists('xmldb_main_upgrade')) {
|
if ($status && function_exists('xmldb_main_upgrade')) {
|
||||||
$status = xmldb_main_upgrade($CFG->version);
|
$status = xmldb_main_upgrade($CFG->version);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue