]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-16879 run upgrade_fix_incorrect_mnethostids() in upgrade. Bump.
authorstronk7 <stronk7>
Tue, 12 May 2009 00:23:26 +0000 (00:23 +0000)
committerstronk7 <stronk7>
Tue, 12 May 2009 00:23:26 +0000 (00:23 +0000)
lib/db/upgrade.php
version.php

index fe37403fbf73cc91f8e51460cb21cd7a37509efc..543fa33bb85d069f7c40c67b5b0bfcd21448b3b3 100644 (file)
@@ -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;
 }
 
index cf599db778d3a5815c8fe34c020a5f24d1128ec9..08ef46a54e828f345e8ed2d05935ea4b3f63ee26 100644 (file)
@@ -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