mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
Merged branch 'MLD-27551' of git://github.com/mouneyrac/moodle.git with changes
This commit is contained in:
commit
96e0194c05
11 changed files with 239 additions and 3 deletions
|
@ -6531,6 +6531,20 @@ WHERE gradeitemid IS NOT NULL AND grademax IS NOT NULL");
|
|||
upgrade_main_savepoint(true, 2011060800);
|
||||
}
|
||||
|
||||
if ($oldversion < 2011060800.01) { //TODO: put the right latest version
|
||||
// Define field shortname to be added to external_services
|
||||
$table = new xmldb_table('external_services');
|
||||
$field = new xmldb_field('shortname', XMLDB_TYPE_CHAR, '255', null, null, null, null, 'timemodified');
|
||||
|
||||
// Conditionally launch add field shortname
|
||||
if (!$dbman->field_exists($table, $field)) {
|
||||
$dbman->add_field($table, $field);
|
||||
}
|
||||
|
||||
// Main savepoint reached
|
||||
upgrade_main_savepoint(true, 2011060800.01);
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue