mirror of
https://github.com/moodle/moodle.git
synced 2025-03-13 20:26:32 +01:00
fix for 5205
This commit is contained in:
parent
7d8b709473
commit
2712ac665c
@ -21,6 +21,15 @@ function hotpot_upgrade($oldversion) {
|
||||
$ok = $ok && hotpot_get_update_to_v2();
|
||||
$ok = $ok && hotpot_update_to_v2_1_2();
|
||||
}
|
||||
|
||||
if ($oldversion < 2006042100) {
|
||||
$result = execute_sql("ALTER TABLE {$CFG->prefix}hotpot_questions DROP INDEX {$CFG->prefix}hotpot_questions_name_idx");
|
||||
$result = execute_sql("ALTER TABLE {$CFG->prefix}hotpot_questions ADD INDEX hotpot_questions_name_idx (name(20))");
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
return $ok;
|
||||
}
|
||||
function hotpot_get_update_to_v2() {
|
||||
|
@ -67,7 +67,7 @@ CREATE TABLE prefix_hotpot_questions (
|
||||
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';
|
||||
#
|
||||
|
@ -3,7 +3,7 @@
|
||||
/// 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
|
||||
|
Loading…
x
Reference in New Issue
Block a user