Adding scorm->skipview to PostgreSQL

This commit is contained in:
stronk7
2006-09-26 15:56:18 +00:00
parent d107d19057
commit d5a28fdae9
2 changed files with 5 additions and 0 deletions
+4
View File
@@ -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;
}
?>
+1
View File
@@ -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',