fixing a weird index in scorm_scoes_track (see bug report 4742)

This commit is contained in:
toyomoyo 2006-02-14 02:44:03 +00:00
parent a9149e77e4
commit 81ef8c1f48
2 changed files with 5 additions and 1 deletions

View File

@ -212,6 +212,10 @@ function scorm_upgrade($oldversion) {
table_column("scorm", "", "maxattempt", "INT", "10", "UNSIGNED", "1", "NOT NULL", "maxgrade");
}
if ($oldversion < 2006021400) { //some people have this werid key - see bug 4742
execute_sql("ALTER TABLE {$CFG->prefix}scorm_scoes_track DROP INDEX elemeny;",false); // do it silently
}
return true;
}
?>

View File

@ -5,7 +5,7 @@
/// This fragment is called by moodle_needs_upgrading() and /admin/index.php
/////////////////////////////////////////////////////////////////////////////////
$module->version = 2005102800; // The (date) version of this module
$module->version = 2006021400; // The (date) version of this module
$module->requires = 2005060200; // The version of Moodle that is required
$module->cron = 0; // How often should cron check this module (seconds)?