Fixed the mess I made with a type in version.php. Thanks Eloy.
This commit is contained in:
@@ -635,11 +635,8 @@ function quiz_upgrade($oldversion) {
|
||||
execute_sql("UPDATE {$CFG->prefix}quiz_questions SET length = 0 WHERE qtype = ".DESCRIPTION);
|
||||
}
|
||||
|
||||
if ($oldversion < 2005050500) {
|
||||
if ($oldversion < 2005050408) {
|
||||
table_column('quiz_questions', '', 'penalty', 'float', '', '', '0.1', 'not null', 'defaultgrade');
|
||||
}
|
||||
|
||||
if ($oldversion < 2005050800) {
|
||||
table_column('quiz_newest_states', 'new', 'newest', 'integer', '10', 'unsigned', '0', 'not null');
|
||||
}
|
||||
|
||||
|
||||
@@ -638,7 +638,7 @@ function quiz_upgrade($oldversion) {
|
||||
execute_sql("UPDATE {$CFG->prefix}quiz_questions SET length = 0 WHERE qtype = ".DESCRIPTION);
|
||||
}
|
||||
|
||||
if ($oldversion < 2005050500) {
|
||||
if ($oldversion < 2005050408) {
|
||||
table_column('quiz_questions', '', 'penalty', 'float', '', '', '0.1', 'not null', 'defaultgrade');
|
||||
}
|
||||
return true;
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
// This fragment is called by moodle_needs_upgrading() and /admin/index.php
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
$module->version = 2005050408; // The (date) version of this module
|
||||
$module->version = 2005051300; // The (date) version of this module
|
||||
$module->requires = 2005021600; // Requires this Moodle version
|
||||
$module->cron = 0; // How often should cron check this module (seconds)?
|
||||
|
||||
|
||||
Reference in New Issue
Block a user