Fix up some old Beta sites that may have lessons
This commit is contained in:
@@ -27,6 +27,10 @@ function lesson_upgrade($oldversion) {
|
||||
|
||||
}
|
||||
|
||||
if ($oldversion < 2004032000) { // Upgrade some old beta lessons
|
||||
execute_sql(" UPDATE `{$CFG->prefix}lesson_pages` SET qtype = 3 WHERE qtype = 0");
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
/// This fragment is called by moodle_needs_upgrading() and /admin/index.php
|
||||
/////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
$module->version = 2004022200; // The current module version (Date: YYYYMMDDXX)
|
||||
$module->version = 2004032000; // The current module version (Date: YYYYMMDDXX)
|
||||
$module->requires = 2004013101; // Requires this Moodle version
|
||||
$module->cron = 0; // Period for cron to check this module (secs)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user