Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Added latest changes to postgres files

  • Loading branch information...
commit ced7ca9ef911c42bb9628e74a312408b3ae2770c 1 parent b7d005a
authored September 05, 2004
6  mod/exercise/db/postgres7.php
@@ -15,6 +15,12 @@ function exercise_upgrade($oldversion) {
15 15
 		table_column("exercise", "", "assessmentcomps", "INTEGER", "4", "UNSIGNED", "2", "NOT NULL", "usemaximum");
16 16
     }
17 17
 
  18
+    if ($oldversion < 2004090200) {
  19
+        table_column("exercise", "", "usepassword", "INTEGER", "4", "UNSIGNED", "0", "NOT NULL");
  20
+        table_column("exercise", "", "password", "VARCHAR", "32", "", "", "NOT NULL");
  21
+    }
  22
+
  23
+
18 24
     return true;
19 25
 }
20 26
 
5  mod/exercise/db/postgres7.sql
@@ -17,7 +17,10 @@ CREATE TABLE prefix_exercise (
17 17
   timemodified INT8  NOT NULL default '0',
18 18
   grade INT NOT NULL default '0',
19 19
   gradinggrade INT  NOT NULL default '0',
20  
-  showleaguetable INT  NOT NULL default '0'
  20
+  showleaguetable INT  NOT NULL default '0',
  21
+  usepassword INT4 NOT NULL default '0',
  22
+  password VARCHAR(32) NOT NULL default ''
  23
+
21 24
 );
22 25
 # --------------------------------------------------------
23 26
 

0 notes on commit ced7ca9

Please sign in to comment.
Something went wrong with that request. Please try again.