Skip to content

Commit

Permalink
Fixed mysql db design
Browse files Browse the repository at this point in the history
  • Loading branch information
bobopinna committed Apr 11, 2005
1 parent a8cb9ee commit e170f66
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions mod/scorm/db/postgres7.php
Expand Up @@ -102,6 +102,11 @@ function scorm_upgrade($oldversion) {
if ($oldversion < 2005040400) {
table_column("scorm_scoes", "", "parameters", "VARCHAR", "255", "", "", "NOT NULL", "launch");
}

if ($oldversion < 2005040700) {
execute_sql("DROP INDEX {$CFG->prefix}scorm_scoes_track_userid_idx;",false);
modify_database('','CREATE INDEX prefix_scorm_scoes_track_userdata_idx ON prefix_scorm_scoes_track (userid, scormid, scoid);');
}

return true;
}
Expand Down
2 changes: 1 addition & 1 deletion mod/scorm/version.php
Expand Up @@ -5,7 +5,7 @@
/// This fragment is called by moodle_needs_upgrading() and /admin/index.php
/////////////////////////////////////////////////////////////////////////////////

$module->version = 2005040400; // The (date) version of this module
$module->version = 2005040700; // The (date) version of this module
$module->requires = 2005021600; // The version of Moodle that is required
$module->cron = 0; // How often should cron check this module (seconds)?
Expand Down

0 comments on commit e170f66

Please sign in to comment.