moodle16cleanup: mod/scrom set the correct defaults and correctly recreate

the new check constraint
This commit is contained in:
martinlanghoff
2006-05-17 06:17:53 +00:00
parent 1ce5928d35
commit 9c44a6972c
+4
View File
@@ -230,6 +230,10 @@ function scorm_upgrade($oldversion) {
if ($oldversion < 2006021401) {
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');
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)');
}
return true;