From: gustav_delius Date: Fri, 7 Apr 2006 05:28:18 +0000 (+0000) Subject: Introduce field for teacher comments, in preparation for manual grading. I am afraid... X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=934eea9e4390e7589151ac6dc39805ee77cfcc42;p=moodle.git Introduce field for teacher comments, in preparation for manual grading. I am afraid I forgot to commit this yesterday, so now it is possible that some new beta testers installed Moodle without this new field. --- diff --git a/mod/quiz/db/mysql.sql b/mod/quiz/db/mysql.sql index 733207a4a7..9190eadd48 100644 --- a/mod/quiz/db/mysql.sql +++ b/mod/quiz/db/mysql.sql @@ -169,6 +169,7 @@ CREATE TABLE prefix_question_sessions ( newest int(10) unsigned NOT NULL default '0', newgraded int(10) unsigned NOT NULL default '0', sumpenalty float NOT NULL default '0', + comment text NOT NULL default '', PRIMARY KEY (id), UNIQUE KEY attemptid (attemptid,questionid) ) TYPE=MyISAM COMMENT='Gives ids of the newest open and newest graded states'; diff --git a/mod/quiz/db/postgres7.sql b/mod/quiz/db/postgres7.sql index 08fb04c0ec..5e42aeddc7 100644 --- a/mod/quiz/db/postgres7.sql +++ b/mod/quiz/db/postgres7.sql @@ -165,7 +165,8 @@ CREATE TABLE prefix_question_sessions ( questionid integer NOT NULL default '0', newest integer NOT NULL default '0', newgraded integer NOT NULL default '0', - sumpenalty real NOT NULL default '0' + sumpenalty real NOT NULL default '0', + comment text NOT NULL default '', ); CREATE UNIQUE INDEX prefix_question_sessions_attempt_idx ON prefix_question_sessions (attemptid,questionid);