mirror of
https://github.com/moodle/moodle.git
synced 2025-02-15 13:24:56 +01:00
Postgres compatibility in scorm db upgrade
This commit is contained in:
parent
cc17b250d8
commit
6f61d7b985
@ -219,7 +219,7 @@ function scorm_upgrade($oldversion) {
|
||||
if ($oldversion < 2005092600) {
|
||||
table_column("scorm_scoes_track", "", "attempt", "integer", "", "UNSIGNED", "1", "NOT NULL", "scoid");
|
||||
execute_sql("DROP INDEX {$CFG->prefix}scorm_scoes_track_scormid_idx", false);
|
||||
modify_database('','ALTER TABLE prefix_scorm_scoes_track ADD UNIQUE track (userid,scormid,scoid,attempt,element);');
|
||||
modify_database('',"CREATE UNIQUE INDEX prefix_scorm_scoes_track_uk ON prefix_scorm_scoes_track(userid,scormid,scoid,attempt,element);");
|
||||
}
|
||||
|
||||
if ($oldversion < 2005102800) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user