Fix up some old Beta sites that may have lessons

This commit is contained in:
moodler
2004-03-20 13:16:04 +00:00
parent e0d4440f1c
commit 9ef4f2323d
2 changed files with 5 additions and 1 deletions
+4
View File
@@ -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;
}
+1 -1
View File
@@ -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)