Skip to content
Snippets Groups Projects
Commit fbfc520b authored by Chris Sangwin's avatar Chris Sangwin
Browse files

Revert DB design to not-null.

parent c288fa3b
No related branches found
No related tags found
No related merge requests found
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
<FIELD NAME="specificfeedback" TYPE="text" NOTNULL="true" SEQUENCE="false" COMMENT="CAS text for the specific feedback for the question."/> <FIELD NAME="specificfeedback" TYPE="text" NOTNULL="true" SEQUENCE="false" COMMENT="CAS text for the specific feedback for the question."/>
<FIELD NAME="specificfeedbackformat" TYPE="int" LENGTH="2" NOTNULL="true" DEFAULT="0" SEQUENCE="false" COMMENT="The FORMAT_... for the specific feedback"/> <FIELD NAME="specificfeedbackformat" TYPE="int" LENGTH="2" NOTNULL="true" DEFAULT="0" SEQUENCE="false" COMMENT="The FORMAT_... for the specific feedback"/>
<FIELD NAME="questionnote" TYPE="text" NOTNULL="true" SEQUENCE="false" COMMENT="CAS text. This should be a short summary of which random variant of the question the student saw."/> <FIELD NAME="questionnote" TYPE="text" NOTNULL="true" SEQUENCE="false" COMMENT="CAS text. This should be a short summary of which random variant of the question the student saw."/>
<FIELD NAME="questiondescription" TYPE="text" NOTNULL="true" SEQUENCE="false" COMMENT="CAS text. This field is used to store a description/nararive about the question itself."/> <FIELD NAME="questiondescription" TYPE="text" NOTNULL="false" SEQUENCE="false" COMMENT="CAS text. This field is used to store a description/nararive about the question itself."/>
<FIELD NAME="questiondescriptionformat" TYPE="int" LENGTH="2" NOTNULL="true" DEFAULT="0" SEQUENCE="false" COMMENT="The FORMAT_... for the question description"/> <FIELD NAME="questiondescriptionformat" TYPE="int" LENGTH="2" NOTNULL="true" DEFAULT="0" SEQUENCE="false" COMMENT="The FORMAT_... for the question description"/>
<FIELD NAME="questionsimplify" TYPE="int" LENGTH="4" NOTNULL="true" DEFAULT="1" SEQUENCE="false" COMMENT="Whether to simplify expressions in the question text, question variables, etc."/> <FIELD NAME="questionsimplify" TYPE="int" LENGTH="4" NOTNULL="true" DEFAULT="1" SEQUENCE="false" COMMENT="Whether to simplify expressions in the question text, question variables, etc."/>
<FIELD NAME="assumepositive" TYPE="int" LENGTH="4" NOTNULL="true" DEFAULT="0" SEQUENCE="false" COMMENT="Whether to assume that variables are positive."/> <FIELD NAME="assumepositive" TYPE="int" LENGTH="4" NOTNULL="true" DEFAULT="0" SEQUENCE="false" COMMENT="Whether to assume that variables are positive."/>
......
...@@ -909,7 +909,7 @@ function xmldb_qtype_stack_upgrade($oldversion) { ...@@ -909,7 +909,7 @@ function xmldb_qtype_stack_upgrade($oldversion) {
// Define question description field to be added to qtype_stack_options. // Define question description field to be added to qtype_stack_options.
$table = new xmldb_table('qtype_stack_options'); $table = new xmldb_table('qtype_stack_options');
$field = new xmldb_field('questiondescription', XMLDB_TYPE_TEXT, 'medium', null, XMLDB_NOTNULL, null, null, 'questionnote'); $field = new xmldb_field('questiondescription', XMLDB_TYPE_TEXT, 'medium', null, null, null, null, 'questionnote');
if (!$dbman->field_exists($table, $field)) { if (!$dbman->field_exists($table, $field)) {
$dbman->add_field($table, $field); $dbman->add_field($table, $field);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment