$ok = $ok && hotpot_get_update_to_v2();\r
$ok = $ok && hotpot_update_to_v2_1_2();\r
}\r
+ \r
+ if ($oldversion < 2006042100) {\r
+ $result = execute_sql("ALTER TABLE {$CFG->prefix}hotpot_questions DROP INDEX {$CFG->prefix}hotpot_questions_name_idx");\r
+ $result = execute_sql("ALTER TABLE {$CFG->prefix}hotpot_questions ADD INDEX hotpot_questions_name_idx (name(20))");\r
+ \r
+ }\r
+ \r
+ \r
+ \r
return $ok;\r
}\r
function hotpot_get_update_to_v2() {\r
text int(10) unsigned default NULL,
hotpot int(10) unsigned NOT NULL default '0',
PRIMARY KEY (id),
- KEY prefix_hotpot_questions_name_idx (name(20)),
+ KEY hotpot_questions_name_idx (name(20)),
KEY prefix_hotpot_questions_hotpot_idx (hotpot)
) TYPE=MyISAM COMMENT='details about questions in Hot Potatoes quiz attempts';
#
/// Code fragment to define the version of hotpot
/// This fragment is called by moodle_needs_upgrading() and /admin/index.php
/////////////////////////////////////////////////////////////////////////////////
-$module->version = 2005090715; // release date of this version (see note below)
+$module->version = 2006042100; // release date of this version (see note below)
$module->release = 'v2.1.15'; // human-friendly version name (used in mod/hotpot/lib.php)
$module->cron = 0; // period for cron to check this module (secs)
// interpretation of YYYYMMDDXY version numbers