mirror of
https://github.com/moodle/moodle.git
synced 2025-07-17 12:21:24 +02:00
Added latest changes to postgres files
This commit is contained in:
@@ -15,6 +15,12 @@ function exercise_upgrade($oldversion) {
|
|||||||
table_column("exercise", "", "assessmentcomps", "INTEGER", "4", "UNSIGNED", "2", "NOT NULL", "usemaximum");
|
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;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -17,7 +17,10 @@ CREATE TABLE prefix_exercise (
|
|||||||
timemodified INT8 NOT NULL default '0',
|
timemodified INT8 NOT NULL default '0',
|
||||||
grade INT NOT NULL default '0',
|
grade INT NOT NULL default '0',
|
||||||
gradinggrade 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 ''
|
||||||
|
|
||||||
);
|
);
|
||||||
# --------------------------------------------------------
|
# --------------------------------------------------------
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user