bug related to postgres - inserts into prefix_exercise_assessments were failing,

because generalcomment and teachercomment were not null and didn't have defaults.
for some reason mysql allows this but postgres complains. I've set empty string defaults and added into mysql for consistency.
This commit is contained in:
mjollnir_
2004-09-10 04:42:01 +00:00
parent 01a5135d87
commit a6c7e600bc
5 changed files with 13 additions and 5 deletions
+2 -2
View File
@@ -55,8 +55,8 @@ CREATE TABLE prefix_exercise_assessments (
grade float NOT NULL default '0',
gradinggrade INT NOT NULL default '0',
mailed INT2 NOT NULL default '0',
generalcomment text NOT NULL,
teachercomment text NOT NULL
generalcomment text NOT NULL default '',
teachercomment text NOT NULL default ''
);
# --------------------------------------------------------
CREATE INDEX prefix_exercise_assessments_submissionid_idx ON prefix_exercise_assessments (submissionid);