mirror of
https://github.com/moodle/moodle.git
synced 2025-08-06 17:36:38 +02:00
some bug fixes
This commit is contained in:
parent
dc1acc9bcb
commit
7c5406967d
14 changed files with 141 additions and 47 deletions
|
@ -376,7 +376,7 @@ function migrate2utf8_quiz_categories_name($recordid){
|
|||
}
|
||||
|
||||
$SQL = "SELECT qc.course
|
||||
FROM {$CFG->prefix}quiz_categories qc,
|
||||
FROM {$CFG->prefix}quiz_categories qc
|
||||
WHERE qc.id = $recordid";
|
||||
|
||||
if (!$quiz = get_record_sql($SQL)) {
|
||||
|
@ -418,7 +418,7 @@ function migrate2utf8_quiz_categories_info($recordid){
|
|||
}
|
||||
|
||||
$SQL = "SELECT qc.course
|
||||
FROM {$CFG->prefix}quiz_categories qc,
|
||||
FROM {$CFG->prefix}quiz_categories qc
|
||||
WHERE qc.id = $recordid";
|
||||
|
||||
if (!$quiz = get_record_sql($SQL)) {
|
||||
|
|
|
@ -1,5 +1,34 @@
|
|||
<DBMIGRATION type="mod/quiz" VERSION="2005120100">
|
||||
<TABLES>
|
||||
<TABLE name="quiz_attemptonlast_datasets" />
|
||||
<TABLE name="quiz_grades" />
|
||||
<TABLE name="quiz_question_datasets" />
|
||||
<TABLE name="quiz_question_instances" />
|
||||
<TABLE name="quiz_question_versions" />
|
||||
<TABLE name="quiz_randomsamatch" />
|
||||
<TABLE name="quiz_truefalse" />
|
||||
<TABLE name="quiz_rqp">
|
||||
<FIELDS>
|
||||
<FIELD name="format" method="NO_CONV" type="varchar" length="255" />
|
||||
</FIELDS>
|
||||
</TABLE>
|
||||
<TABLE name="quiz_rqp_servers">
|
||||
<FIELDS>
|
||||
<FIELD name="url" method="NO_CONV" type="varchar" length="255" />
|
||||
</FIELDS>
|
||||
</TABLE>
|
||||
<TABLE name="quiz_rqp_states">
|
||||
<FIELDS>
|
||||
<FIELD name="responses" method="NO_CONV" type="text" length="0" />
|
||||
<FIELD name="persistent_data" method="NO_CONV" type="text" length="0" />
|
||||
<FIELD name="template_vars" method="NO_CONV" type="text" length="0" />
|
||||
</FIELDS>
|
||||
</TABLE>
|
||||
<TABLE name="quiz_rqp_types">
|
||||
<FIELDS>
|
||||
<FIELD name="name" method="NO_CONV" type="varchar" length="255" dropindex="name" adduniqueindex="name (name(255))"/>
|
||||
</FIELDS>
|
||||
</TABLE>
|
||||
<TABLE name="quiz_shortanswer">
|
||||
<FIELDS>
|
||||
<FIELD name="answers" method="NO_CONV" type="text" length="0" />
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue