diff --git a/mod/scorm/db/mysql.php b/mod/scorm/db/mysql.php index 1ae99bd0eaf..af60756cf18 100755 --- a/mod/scorm/db/mysql.php +++ b/mod/scorm/db/mysql.php @@ -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; } ?> diff --git a/mod/scorm/version.php b/mod/scorm/version.php index 66c0c3bca75..1fa6f1489a3 100755 --- a/mod/scorm/version.php +++ b/mod/scorm/version.php @@ -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)?