MDL-66934 mod_lti: support context history param
This commit is contained in:
@@ -2694,5 +2694,19 @@ function xmldb_main_upgrade($oldversion) {
|
||||
upgrade_main_savepoint(true, 2021052500.13);
|
||||
}
|
||||
|
||||
if ($oldversion < 2021052500.15) {
|
||||
// Copy From id captures the id of the source course when a new course originates from a restore
|
||||
// of another course on the same site.
|
||||
$table = new xmldb_table('course');
|
||||
$field = new xmldb_field('originalcourseid', XMLDB_TYPE_INTEGER, '10', null, null, null, null);
|
||||
|
||||
if (!$dbman->field_exists($table, $field)) {
|
||||
$dbman->add_field($table, $field);
|
||||
}
|
||||
|
||||
// Main savepoint reached.
|
||||
upgrade_main_savepoint(true, 2021052500.15);
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user