diff --git a/mod/scorm/db/postgres7.php b/mod/scorm/db/postgres7.php index f95defe6403..9e02e58d7fe 100755 --- a/mod/scorm/db/postgres7.php +++ b/mod/scorm/db/postgres7.php @@ -240,6 +240,10 @@ function scorm_upgrade($oldversion) { modify_database('', 'ALTER TABLE prefix_scorm_scoes_track ADD CONSTRAINT prefix_scorm_scoes_track_userid_key UNIQUE (userid, scormid, scoid, attempt, element)'); } + if ($oldversion < 2006102600) { + table_column("scorm", "", "skipview", "integer", "", "", "1", "NOT NULL"); + } + return true; } ?> diff --git a/mod/scorm/db/postgres7.sql b/mod/scorm/db/postgres7.sql index 65d53225fb5..9b3bc1c754a 100755 --- a/mod/scorm/db/postgres7.sql +++ b/mod/scorm/db/postgres7.sql @@ -11,6 +11,7 @@ CREATE TABLE prefix_scorm ( grademethod integer NOT NULL default '0', maxattempt integer NOT NULL default '1', launch integer NOT NULL default '0', + skipview integer NOT NULL default '1', summary text NOT NULL default '', hidebrowse integer NOT NULL default '0', hidetoc integer NOT NULL default '0',