Permalink
Browse files

Fixed mysql db design

  • Loading branch information...
1 parent a8cb9ee commit e170f66546184b1a176a8b18f60fcc24095f0ed1 bobopinna committed Apr 11, 2005
Showing with 6 additions and 1 deletion.
  1. +5 −0 mod/scorm/db/postgres7.php
  2. +1 −1 mod/scorm/version.php
@@ -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;
}
View
@@ -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)?

0 comments on commit e170f66

Please sign in to comment.