mirror of
https://github.com/moodle/moodle.git
synced 2025-05-06 16:26:08 +02:00
Merge branch 'MDL-27770' of git://github.com/timhunt/moodle
This commit is contained in:
commit
c7dbcc9452
@ -1034,21 +1034,6 @@ function xmldb_quiz_upgrade($oldversion) {
|
|||||||
upgrade_mod_savepoint(true, 2011051223, 'quiz');
|
upgrade_mod_savepoint(true, 2011051223, 'quiz');
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($oldversion < 2011051224) {
|
|
||||||
|
|
||||||
// Define field hintformat to be added to question_hints table.
|
|
||||||
$table = new xmldb_table('question_hints');
|
|
||||||
$field = new xmldb_field('hintformat', XMLDB_TYPE_INTEGER, '4', XMLDB_UNSIGNED,
|
|
||||||
XMLDB_NOTNULL, null, '0');
|
|
||||||
|
|
||||||
// Conditionally launch add field partiallycorrectfeedbackformat
|
|
||||||
if (!$dbman->field_exists($table, $field)) {
|
|
||||||
$dbman->add_field($table, $field);
|
|
||||||
}
|
|
||||||
|
|
||||||
upgrade_mod_savepoint(true, 2011051224, 'quiz');
|
|
||||||
}
|
|
||||||
|
|
||||||
if ($oldversion < 2011051225) {
|
if ($oldversion < 2011051225) {
|
||||||
// Define table quiz_report to be renamed to quiz_reports
|
// Define table quiz_report to be renamed to quiz_reports
|
||||||
$table = new xmldb_table('quiz_report');
|
$table = new xmldb_table('quiz_report');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user