mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
Merge branch 'MDL-60361-master' of git://github.com/andrewnicols/moodle
This commit is contained in:
commit
eb354bdefa
14 changed files with 713 additions and 176 deletions
|
@ -2793,5 +2793,20 @@ function xmldb_main_upgrade($oldversion) {
|
|||
upgrade_main_savepoint(true, 2017102100.01);
|
||||
}
|
||||
|
||||
if ($oldversion < 2017110300.01) {
|
||||
|
||||
// Define field categoryid to be added to event_subscriptions.
|
||||
$table = new xmldb_table('event_subscriptions');
|
||||
$field = new xmldb_field('categoryid', XMLDB_TYPE_INTEGER, '10', null, XMLDB_NOTNULL, null, '0', 'url');
|
||||
|
||||
// Conditionally launch add field categoryid.
|
||||
if (!$dbman->field_exists($table, $field)) {
|
||||
$dbman->add_field($table, $field);
|
||||
}
|
||||
|
||||
// Main savepoint reached.
|
||||
upgrade_main_savepoint(true, 2017110300.01);
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue