Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Added latest changes to postgres files

  • Loading branch information...
commit ced7ca9ef911c42bb9628e74a312408b3ae2770c 1 parent b7d005a
paca70 authored
Showing with 10 additions and 1 deletion.
  1. +6 −0 mod/exercise/db/postgres7.php
  2. +4 −1 mod/exercise/db/postgres7.sql
View
6 mod/exercise/db/postgres7.php
@@ -15,6 +15,12 @@ function exercise_upgrade($oldversion) {
table_column("exercise", "", "assessmentcomps", "INTEGER", "4", "UNSIGNED", "2", "NOT NULL", "usemaximum");
}
+ if ($oldversion < 2004090200) {
+ table_column("exercise", "", "usepassword", "INTEGER", "4", "UNSIGNED", "0", "NOT NULL");
+ table_column("exercise", "", "password", "VARCHAR", "32", "", "", "NOT NULL");
+ }
+
+
return true;
}
View
5 mod/exercise/db/postgres7.sql
@@ -17,7 +17,10 @@ CREATE TABLE prefix_exercise (
timemodified INT8 NOT NULL default '0',
grade INT NOT NULL default '0',
gradinggrade INT NOT NULL default '0',
- showleaguetable INT NOT NULL default '0'
+ showleaguetable INT NOT NULL default '0',
+ usepassword INT4 NOT NULL default '0',
+ password VARCHAR(32) NOT NULL default ''
+
);
# --------------------------------------------------------
Please sign in to comment.
Something went wrong with that request. Please try again.