Added latest changes to postgres files

This commit is contained in:
paca70
2004-09-05 11:26:19 +00:00
parent b7d005a96e
commit ced7ca9ef9
2 changed files with 10 additions and 1 deletions

View File

@ -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 File

@ -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 ''
);
# --------------------------------------------------------