mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 08:26:37 +02:00
MDL-48894 core_registration: make it more obvious if site is registered
This commit is contained in:
parent
88cd577ef3
commit
806c06fc7b
5 changed files with 42 additions and 9 deletions
|
@ -4161,5 +4161,21 @@ function xmldb_main_upgrade($oldversion) {
|
|||
// Main savepoint reached.
|
||||
upgrade_main_savepoint(true, 2015012600.01);
|
||||
}
|
||||
|
||||
if ($oldversion < 2015012900.01) {
|
||||
|
||||
// Define field timemodified to be added to registration_hubs.
|
||||
$table = new xmldb_table('registration_hubs');
|
||||
$field = new xmldb_field('timemodified', XMLDB_TYPE_INTEGER, '10', null, null, null, '0', 'secret');
|
||||
|
||||
// Conditionally launch add field timemodified.
|
||||
if (!$dbman->field_exists($table, $field)) {
|
||||
$dbman->add_field($table, $field);
|
||||
}
|
||||
|
||||
// Main savepoint reached.
|
||||
upgrade_main_savepoint(true, 2015012900.01);
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue