mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 08:26:37 +02:00
Merge branch 'wip-MDL-36014-master' of git://github.com/marinaglancy/moodle
Conflicts: lib/db/install.xml lib/db/upgrade.php version.php
This commit is contained in:
commit
4a813f3959
26 changed files with 704 additions and 238 deletions
|
@ -3949,5 +3949,20 @@ function xmldb_main_upgrade($oldversion) {
|
|||
upgrade_main_savepoint(true, 2014100700.00);
|
||||
}
|
||||
|
||||
if ($oldversion < 2014100700.01) {
|
||||
|
||||
// Define field visible to be added to cohort.
|
||||
$table = new xmldb_table('cohort');
|
||||
$field = new xmldb_field('visible', XMLDB_TYPE_INTEGER, '1', null, XMLDB_NOTNULL, null, '1', 'descriptionformat');
|
||||
|
||||
// Conditionally launch add field visible.
|
||||
if (!$dbman->field_exists($table, $field)) {
|
||||
$dbman->add_field($table, $field);
|
||||
}
|
||||
|
||||
// Main savepoint reached.
|
||||
upgrade_main_savepoint(true, 2014100700.01);
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue