mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 08:26:37 +02:00
Merge branch 'MDL-32188' of git://github.com/timhunt/moodle
Conflicts: lib/db/upgrade.php
This commit is contained in:
commit
cbf34f34cc
74 changed files with 1680 additions and 298 deletions
|
@ -2605,7 +2605,21 @@ function xmldb_main_upgrade($oldversion) {
|
|||
|
||||
// Main savepoint reached.
|
||||
upgrade_main_savepoint(true, 2013100400.01);
|
||||
}
|
||||
|
||||
if ($oldversion < 2013100800.00) {
|
||||
|
||||
// Define field maxfraction to be added to question_attempts.
|
||||
$table = new xmldb_table('question_attempts');
|
||||
$field = new xmldb_field('maxfraction', XMLDB_TYPE_NUMBER, '12, 7', null, XMLDB_NOTNULL, null, '1', 'minfraction');
|
||||
|
||||
// Conditionally launch add field maxfraction.
|
||||
if (!$dbman->field_exists($table, $field)) {
|
||||
$dbman->add_field($table, $field);
|
||||
}
|
||||
|
||||
// Main savepoint reached.
|
||||
upgrade_main_savepoint(true, 2013100800.00);
|
||||
}
|
||||
|
||||
return true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue