From: stronk7 Date: Tue, 12 May 2009 00:23:26 +0000 (+0000) Subject: MDL-16879 run upgrade_fix_incorrect_mnethostids() in upgrade. Bump. X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=ecdf5d17a04c1ea786d14eeb79731489c0257f37;p=moodle.git MDL-16879 run upgrade_fix_incorrect_mnethostids() in upgrade. Bump. --- diff --git a/lib/db/upgrade.php b/lib/db/upgrade.php index fe37403fbf..543fa33bb8 100644 --- a/lib/db/upgrade.php +++ b/lib/db/upgrade.php @@ -2126,6 +2126,16 @@ WHERE gradeitemid IS NOT NULL AND grademax IS NOT NULL"); upgrade_main_savepoint($result, 2009050619); } + if ($result && $oldversion < 2009051200) { + /// Let's check the status of mandatory mnet_host records, fixing them + /// and moving "orphan" users to default localhost record. MDL-16879 + notify('Fixing mnet records, this may take a while...', 'notifysuccess'); + upgrade_fix_incorrect_mnethostids(); + + /// Main savepoint reached + upgrade_main_savepoint($result, 2009051200); + } + return $result; } diff --git a/version.php b/version.php index cf599db778..08ef46a54e 100644 --- a/version.php +++ b/version.php @@ -6,7 +6,7 @@ // This is compared against the values stored in the database to determine // whether upgrades should be performed (see lib/db/*.php) - $version = 2009050619; // YYYYMMDD = date of the last version bump + $version = 2009051200; // YYYYMMDD = date of the last version bump // XX = daily increments $release = '2.0 dev (Build: 20090511)'; // Human-friendly version name