mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
Merge branch 'MDL-54751-master-v5' of https://github.com/snake/moodle
This commit is contained in:
commit
90abff01b3
25 changed files with 725 additions and 25 deletions
|
@ -2392,5 +2392,19 @@ function xmldb_main_upgrade($oldversion) {
|
|||
upgrade_main_savepoint(true, 2016110500.00);
|
||||
}
|
||||
|
||||
if ($oldversion < 2016110600.00) {
|
||||
// Define a field 'deletioninprogress' in the 'course_modules' table, to background deletion tasks.
|
||||
$table = new xmldb_table('course_modules');
|
||||
$field = new xmldb_field('deletioninprogress', XMLDB_TYPE_INTEGER, '1', null, XMLDB_NOTNULL, null, '0', 'availability');
|
||||
|
||||
// Conditionally launch add field 'deletioninprogress'.
|
||||
if (!$dbman->field_exists($table, $field)) {
|
||||
$dbman->add_field($table, $field);
|
||||
}
|
||||
|
||||
// Main savepoint reached.
|
||||
upgrade_main_savepoint(true, 2016110600.00);
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue