From 5b6e1eebd790e164a3db0e3729cb48d1f5f68bb5 Mon Sep 17 00:00:00 2001 From: gustav_delius Date: Fri, 13 May 2005 15:49:15 +0000 Subject: [PATCH] Fixed the mess I made with a type in version.php. Thanks Eloy. --- mod/quiz/db/mysql.php | 5 +---- mod/quiz/db/postgres7.php | 2 +- mod/quiz/version.php | 2 +- 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/mod/quiz/db/mysql.php b/mod/quiz/db/mysql.php index a04e3601fad..29c6db382e2 100644 --- a/mod/quiz/db/mysql.php +++ b/mod/quiz/db/mysql.php @@ -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'); } diff --git a/mod/quiz/db/postgres7.php b/mod/quiz/db/postgres7.php index a42cf471573..cfd5d8512c2 100644 --- a/mod/quiz/db/postgres7.php +++ b/mod/quiz/db/postgres7.php @@ -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; diff --git a/mod/quiz/version.php b/mod/quiz/version.php index a6656587198..f7391d2a3f7 100644 --- a/mod/quiz/version.php +++ b/mod/quiz/version.php @@ -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)?