mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 17:06:53 +02:00
Merge branch 'MDL-67883-squash' of https://github.com/Chocolate-lightning/moodle
This commit is contained in:
commit
618b13e1f5
87 changed files with 5262 additions and 41 deletions
|
@ -872,6 +872,7 @@
|
|||
<FIELD NAME="firstnamephonetic" TYPE="char" LENGTH="255" NOTNULL="false" SEQUENCE="false" COMMENT="First name phonetic"/>
|
||||
<FIELD NAME="middlename" TYPE="char" LENGTH="255" NOTNULL="false" SEQUENCE="false" COMMENT="Middle name"/>
|
||||
<FIELD NAME="alternatename" TYPE="char" LENGTH="255" NOTNULL="false" SEQUENCE="false" COMMENT="Alternate name - Useful for three-name countries."/>
|
||||
<FIELD NAME="moodlenetprofile" TYPE="char" LENGTH="255" NOTNULL="false" SEQUENCE="false" COMMENT="Moodle.net profile information"/>
|
||||
</FIELDS>
|
||||
<KEYS>
|
||||
<KEY NAME="primary" TYPE="primary" FIELDS="id"/>
|
||||
|
|
|
@ -671,6 +671,14 @@ $functions = array(
|
|||
'type' => 'read',
|
||||
'ajax' => true,
|
||||
),
|
||||
'core_course_get_activity_chooser_footer' => array(
|
||||
'classname' => 'core_course_external',
|
||||
'methodname' => 'get_activity_chooser_footer',
|
||||
'classpath' => 'course/externallib.php',
|
||||
'description' => 'Fetch the data for the activity chooser footer.',
|
||||
'type' => 'read',
|
||||
'ajax' => true,
|
||||
),
|
||||
'core_course_toggle_activity_recommendation' => array(
|
||||
'classname' => 'core_course_external',
|
||||
'methodname' => 'toggle_activity_recommendation',
|
||||
|
|
|
@ -2427,5 +2427,19 @@ function xmldb_main_upgrade($oldversion) {
|
|||
upgrade_main_savepoint(true, 2020052200.01);
|
||||
}
|
||||
|
||||
if ($oldversion < 2020060500.01) {
|
||||
// Define field moodlenetprofile to be added to user.
|
||||
$table = new xmldb_table('user');
|
||||
$field = new xmldb_field('moodlenetprofile', XMLDB_TYPE_CHAR, '255', null, null, null, null, 'alternatename');
|
||||
|
||||
// Conditionally launch add field moodlenetprofile.
|
||||
if (!$dbman->field_exists($table, $field)) {
|
||||
$dbman->add_field($table, $field);
|
||||
}
|
||||
|
||||
// Main savepoint reached.
|
||||
upgrade_main_savepoint(true, 2020060500.01);
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue