2004-05-20 17:06:19 +00:00
|
|
|
<?PHP // $Id$
|
|
|
|
|
2004-05-23 11:55:43 +00:00
|
|
|
function scorm_upgrade($oldversion) {
|
2004-05-20 17:06:19 +00:00
|
|
|
// This function does anything necessary to upgrade
|
|
|
|
// older versions to match current functionality
|
2004-06-21 11:27:52 +00:00
|
|
|
global $CFG;
|
|
|
|
if ($oldversion < 2004033000) {
|
|
|
|
table_column("scorm", "", "auto", "integer", "1", "", "0", "NOT NULL", "summary");
|
|
|
|
}
|
|
|
|
if ($oldversion < 2004040900) {
|
|
|
|
table_column("scorm_sco_users", "", "cmi_core_score_raw", "real", "3", "", "0", "NOT NULL", "cmi_core_session_time");
|
|
|
|
}
|
|
|
|
if ($oldversion < 2004061800) {
|
|
|
|
table_column("scorm", "", "popup", "varchar", "255", "", "", "NOT NULL", "auto");
|
|
|
|
table_column("scorm", "reference", "reference", "varchar", "255", "", "", "NOT NULL");
|
|
|
|
}
|
2004-05-20 17:06:19 +00:00
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
?>
|
|
|
|
|