From: tjhunt Date: Fri, 15 Aug 2008 07:23:18 +0000 (+0000) Subject: MDL-6095 - Question bank tables are created by the quiz module. The really core table... X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=4f089b2155fd7487beb99d20608975315016a5d1;p=moodle.git MDL-6095 - Question bank tables are created by the quiz module. The really core tables are now created by lib/db, the datasetdependent tables are not created by the datasetdependent question type, and the question_numerical_units table is now created by the numerical question type. The last two are shared by the calculated question type, but there is no problem with them being created in the order they are now created in. In the past, before the policy that upgrade to 2.0 woudl have to go via 1.9, there would have been bit problems to do with the order of updates, but fortunately that is no longer an issue. --- diff --git a/lib/db/install.xml b/lib/db/install.xml index f3ea7b4830..61bf12a08d 100644 --- a/lib/db/install.xml +++ b/lib/db/install.xml @@ -934,7 +934,7 @@ - +
@@ -945,7 +945,118 @@
- +
+ + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + +
+ + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + +
+ diff --git a/mod/quiz/db/install.xml b/mod/quiz/db/install.xml index b40eab101b..e9e6ad60ad 100755 --- a/mod/quiz/db/install.xml +++ b/mod/quiz/db/install.xml @@ -4,176 +4,7 @@ xsi:noNamespaceSchemaLocation="../../../lib/xmldb/xmldb.xsd" > -
- - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - -
- - - - - - - - - - - - - -
- - - - - - - - - - - - - -
- - - - - - - - - - - - - - -
- - - - - - - - - - - - - - -
- - - - - - - - -
- - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - -
- +
diff --git a/question/type/calculated/db/install.xml b/question/type/calculated/db/install.xml index 9f7ac7e1bf..fec81addfd 100644 --- a/question/type/calculated/db/install.xml +++ b/question/type/calculated/db/install.xml @@ -1,5 +1,5 @@ - +
diff --git a/question/type/datasetdependent/db/install.xml b/question/type/datasetdependent/db/install.xml new file mode 100644 index 0000000000..c24b425438 --- /dev/null +++ b/question/type/datasetdependent/db/install.xml @@ -0,0 +1,48 @@ + + + +
+ + + + + + + + + + + + +
+ + + + + + + + + + + + + +
+ + + + + + + + + + + + + + +
+ + diff --git a/question/type/datasetdependent/db/upgrade.php b/question/type/datasetdependent/db/upgrade.php new file mode 100644 index 0000000000..d3017c7368 --- /dev/null +++ b/question/type/datasetdependent/db/upgrade.php @@ -0,0 +1,38 @@ + diff --git a/question/type/numerical/db/install.xml b/question/type/numerical/db/install.xml index c06857c956..7c350d5893 100644 --- a/question/type/numerical/db/install.xml +++ b/question/type/numerical/db/install.xml @@ -1,7 +1,7 @@ - +
@@ -16,5 +16,20 @@
+ + + + + + + + + + + + + + +