Fixed the mess I made with a type in version.php. Thanks Eloy.

This commit is contained in:
gustav_delius
2005-05-13 15:49:15 +00:00
parent 25709e92e3
commit 5b6e1eebd7
3 changed files with 3 additions and 6 deletions
+1 -4
View File
@@ -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');
}
+1 -1
View File
@@ -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;
+1 -1
View File
@@ -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)?