Fixed MDL-6508 ... a wrongful update to the hotpot version was killing Moodle upgrade
This commit is contained in:
@@ -1464,6 +1464,12 @@ function main_upgrade($oldversion=0) {
|
||||
execute_sql(" CREATE INDEX coursesection ON {$CFG->prefix}course_sections (course,section) ", false);
|
||||
}
|
||||
|
||||
if ($oldversion < 2005060242) { // Fix bad Hotpot version change MDL-6508
|
||||
if ((int)get_field('modules', 'version', 'name', 'hotpot') == 2006082800) {
|
||||
set_field('modules', 'version', 2005031422, 'name', 'hotpot');
|
||||
}
|
||||
}
|
||||
|
||||
return $result;
|
||||
}
|
||||
|
||||
|
||||
@@ -1207,6 +1207,12 @@ function main_upgrade($oldversion=0) {
|
||||
execute_sql(" CREATE INDEX {$CFG->prefix}course_sections_coursesection_idx ON {$CFG->prefix}course_sections (course,section) ", false);
|
||||
}
|
||||
|
||||
if ($oldversion < 2005060242) { // Fix bad Hotpot version change MDL-6508
|
||||
if ((int)get_field('modules', 'version', 'name', 'hotpot') == 2006082800) {
|
||||
set_field('modules', 'version', 2005031422, 'name', 'hotpot');
|
||||
}
|
||||
}
|
||||
|
||||
return $result;
|
||||
}
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
/// This fragment is called by moodle_needs_upgrading() and /admin/index.php
|
||||
/////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
$module->version = 2006082800; // release date of this version (see note below)
|
||||
$module->version = 2005031422; // release date of this version (see note below)
|
||||
$module->release = 'v2.0.12'; // human-friendly version name (used in mod/hotpot/lib.php)
|
||||
$module->requires = 2005060241; // Requires at least Moodle version 1.5.4+
|
||||
$module->cron = 0; // period for cron to check this module (secs)
|
||||
|
||||
+1
-1
@@ -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 = 2005060241; // YYYYMMDD = Moodle 1.5 Date
|
||||
$version = 2005060242; // YYYYMMDD = Moodle 1.5 Date
|
||||
// X = Moodle 1.5 Point release (0,1,2...)
|
||||
// Y = Interim incrementer
|
||||
|
||||
|
||||
Reference in New Issue
Block a user