From: moodler Date: Thu, 24 Oct 2002 03:43:37 +0000 (+0000) Subject: never upgraded choice tables to six choices! X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=23877f9407888fd26cc2648c895e327596525cf5;p=moodle.git never upgraded choice tables to six choices! --- diff --git a/mod/choice/db/mysql.php b/mod/choice/db/mysql.php index c627c9aa33..47c741f552 100644 --- a/mod/choice/db/mysql.php +++ b/mod/choice/db/mysql.php @@ -8,6 +8,12 @@ function choice_upgrade($oldversion) { execute_sql(" ALTER TABLE `choice` CHANGE `answer1` `answer1` VARCHAR( 255 )"); execute_sql(" ALTER TABLE `choice` CHANGE `answer2` `answer2` VARCHAR( 255 )"); } + if ($oldversion < 2002102400) { + execute_sql(" ALTER TABLE `choice` ADD `answer3` varchar(255) NOT NULL AFTER `answer2`"); + execute_sql(" ALTER TABLE `choice` ADD `answer4` varchar(255) NOT NULL AFTER `answer3`"); + execute_sql(" ALTER TABLE `choice` ADD `answer5` varchar(255) NOT NULL AFTER `answer4`"); + execute_sql(" ALTER TABLE `choice` ADD `answer6` varchar(255) NOT NULL AFTER `answer5`"); + } return true; } diff --git a/mod/choice/version.php b/mod/choice/version.php index 03b2b9fc16..1254eb5efc 100644 --- a/mod/choice/version.php +++ b/mod/choice/version.php @@ -5,7 +5,7 @@ // This fragment is called by /admin/index.php //////////////////////////////////////////////////////////////////////////////// -$module->version = 2002090800; +$module->version = 2002102400; $module->cron = 0; ?>