]> git.mjollnir.org Git - moodle.git/commitdiff
Adding scorm->skipview to PostgreSQL
authorstronk7 <stronk7>
Tue, 26 Sep 2006 15:56:18 +0000 (15:56 +0000)
committerstronk7 <stronk7>
Tue, 26 Sep 2006 15:56:18 +0000 (15:56 +0000)
mod/scorm/db/postgres7.php
mod/scorm/db/postgres7.sql

index f95defe6403429f7d62046d584400989db849ec8..9e02e58d7fe10707877c2b90ff0331df5093b15b 100755 (executable)
@@ -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;
 }
 ?>
index 65d53225fb536bc44cbc8c096a0ef63067300783..9b3bc1c754aa888f7ad6f9f648d8905778dfb9fa 100755 (executable)
@@ -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',