modify_database('','ALTER TABLE ONLY prefix_scorm_scoes_track ADD UNIQUE (userid, scormid, scoid, element)');
modify_database('','ALTER TABLE prefix_scorm ALTER browsemode SET DEFAULT 0');
modify_database('','ALTER TABLE prefix_scorm DROP version');
+ notify('You can ignore the error above as version column does not exists, this will be properly upgraded later');
table_column('scorm_scoes','datafromlms','datafromlms','VARCHAR','255','','');
table_column('scorm_scoes','maxtimeallowed','maxtimeallowed','VARCHAR','19','','');
}
if ($oldversion < 2005102800) {
table_column("scorm", "", "maxattempt", "integer", "", "UNSIGNED", "1", "NOT NULL", "maxgrade");
}
+
+
+ if ($oldversion < 2006021401) {
+ table_column("scorm", "", "version", "VARCHAR", "9", "", "", "NOT NULL", "reference");
+ }
+
return true;
}
?>
/// This fragment is called by moodle_needs_upgrading() and /admin/index.php
/////////////////////////////////////////////////////////////////////////////////
-$module->version = 2006021400; // The (date) version of this module
+$module->version = 2006021401; // 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)?