moodle16cleanup: mod/scrom set the correct defaults and correctly recreate
the new check constraint
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user