Skip to content

Commit

Permalink
moodle16cleanup: mod/scorm drop a weird check constraint that is showing
Browse files Browse the repository at this point in the history
up after upgrade
  • Loading branch information
martinlanghoff committed May 17, 2006
1 parent 9c44a69 commit a576fea
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mod/scorm/db/postgres7.php
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,8 @@ function scorm_upgrade($oldversion) {
table_column("scorm", "", "version", "VARCHAR", "9", "", "", "NOT NULL", "reference");

modify_database('', 'ALTER TABLE prefix_scorm ALTER COLUMN width SET DEFAULT 100, ALTER COLUMN height SET DEFAULT 500');
// there is an extra constraint key1, we should drop this
modify_database('', 'ALTER TABLE prefix_scorm_scoes_track DROP CONSTRAINT prefix_scorm_scoes_track_userid_key1');
modify_database('', 'ALTER TABLE prefix_scorm_scoes_track DROP CONSTRAINT prefix_scorm_scoes_track_userid_key');
modify_database('', 'ALTER TABLE prefix_scorm_scoes_track ADD CONSTRAINT prefix_scorm_scoes_track_userid_key UNIQUE (userid, scormid, scoid, attempt, element)');
}
Expand Down

0 comments on commit a576fea

Please sign in to comment.