MDL-16879 run upgrade_fix_incorrect_mnethostids() in upgrade. Bump.

This commit is contained in:
stronk7 2009-05-12 00:23:26 +00:00
parent 02caf1e799
commit ecdf5d17a0
2 changed files with 11 additions and 1 deletions

View 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;
}

View 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