MDL-66934 mod_lti: support context history param

This commit is contained in:
Claude Vervoort
2020-09-18 14:11:34 -04:00
parent f852aa8ad5
commit 5b8c646e68
7 changed files with 63 additions and 2 deletions
+14
View File
@@ -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;
}