mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 08:26:37 +02:00
MDL-41756 (2) quiz statistics : break down question stats by variant
This commit is contained in:
parent
aa05ae5da3
commit
1239d28776
11 changed files with 649 additions and 483 deletions
|
@ -2927,5 +2927,20 @@ function xmldb_main_upgrade($oldversion) {
|
|||
upgrade_main_savepoint(true, 2014011701.00);
|
||||
}
|
||||
|
||||
if ($oldversion < 2014012300.01) {
|
||||
|
||||
// Define field variant to be added to question_statistics.
|
||||
$table = new xmldb_table('question_statistics');
|
||||
$field = new xmldb_field('variant', XMLDB_TYPE_INTEGER, '10', null, null, null, null, 'subquestion');
|
||||
|
||||
// Conditionally launch add field variant.
|
||||
if (!$dbman->field_exists($table, $field)) {
|
||||
$dbman->add_field($table, $field);
|
||||
}
|
||||
|
||||
// Main savepoint reached.
|
||||
upgrade_main_savepoint(true, 2014012300.01);
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue