From 4f089b2155fd7487beb99d20608975315016a5d1 Mon Sep 17 00:00:00 2001 From: tjhunt Date: Fri, 15 Aug 2008 07:23:18 +0000 Subject: [PATCH] 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. --- lib/db/install.xml | 115 +++++++++++- mod/quiz/db/install.xml | 171 +----------------- question/type/calculated/db/install.xml | 2 +- question/type/datasetdependent/db/install.xml | 48 +++++ question/type/datasetdependent/db/upgrade.php | 38 ++++ question/type/numerical/db/install.xml | 17 +- 6 files changed, 217 insertions(+), 174 deletions(-) create mode 100644 question/type/datasetdependent/db/install.xml create mode 100644 question/type/datasetdependent/db/upgrade.php 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 @@
+ + + + + + + + + + + + + + +
-- 2.39.5