Merge commit 'catalyst/MOODLE_19_STABLE' into mdl19-linuxchix
[moodle-linuxchix.git] / question / type / calculated / db / install.xml
blob9f7ac7e1bf3b1ca8ec2c248cf4decb0cbc4691c0
1 <?xml version="1.0" encoding="UTF-8" ?>
2 <XMLDB PATH="question/type/calculated/db" VERSION="20060812" COMMENT="XMLDB file for Moodle question/type/calculated">
3   <TABLES>
4     <TABLE NAME="question_calculated" COMMENT="Options for questions of type calculated">
5       <FIELDS>
6         <FIELD NAME="id" TYPE="int" LENGTH="10" NOTNULL="true" UNSIGNED="true" SEQUENCE="true" ENUM="false" NEXT="question"/>
7         <FIELD NAME="question" TYPE="int" LENGTH="10" NOTNULL="true" UNSIGNED="true" DEFAULT="0" SEQUENCE="false" ENUM="false" PREVIOUS="id" NEXT="answer"/>
8         <FIELD NAME="answer" TYPE="int" LENGTH="10" NOTNULL="true" UNSIGNED="true" DEFAULT="0" SEQUENCE="false" ENUM="false" PREVIOUS="question" NEXT="tolerance"/>
9         <FIELD NAME="tolerance" TYPE="char" LENGTH="20" NOTNULL="true" DEFAULT="0.0" SEQUENCE="false" ENUM="false" PREVIOUS="answer" NEXT="tolerancetype"/>
10         <FIELD NAME="tolerancetype" TYPE="int" LENGTH="10" NOTNULL="true" UNSIGNED="false" DEFAULT="1" SEQUENCE="false" ENUM="false" PREVIOUS="tolerance" NEXT="correctanswerlength"/>
11         <FIELD NAME="correctanswerlength" TYPE="int" LENGTH="10" NOTNULL="true" UNSIGNED="false" DEFAULT="2" SEQUENCE="false" ENUM="false" PREVIOUS="tolerancetype" NEXT="correctanswerformat"/>
12         <FIELD NAME="correctanswerformat" TYPE="int" LENGTH="10" NOTNULL="true" UNSIGNED="false" DEFAULT="2" SEQUENCE="false" ENUM="false" PREVIOUS="correctanswerlength"/>
13       </FIELDS>
14       <KEYS>
15         <KEY NAME="primary" TYPE="primary" FIELDS="id" NEXT="question"/>
16         <KEY NAME="question" TYPE="foreign" FIELDS="question" REFTABLE="questions" REFFIELDS="id" PREVIOUS="primary"/>
17       </KEYS>
18       <INDEXES>
19         <INDEX NAME="answer" UNIQUE="false" FIELDS="answer"/>
20       </INDEXES>
21     </TABLE>
22   </TABLES>
23 </XMLDB>