mirror of
https://github.com/moodle/moodle.git
synced 2025-04-16 05:54:19 +02:00
A small bug in rename_field means that you need to specify the field in detail for it to work.
This will be fixed by Eloy later. MDL-8237
This commit is contained in:
parent
a679d64d39
commit
fdaacd8b70
@ -583,6 +583,7 @@ function xmldb_main_upgrade($oldversion=0) {
|
||||
/// Rename field access on table mnet_sso_access_control to accessctrl
|
||||
$table = new XMLDBTable('mnet_sso_access_control');
|
||||
$field = new XMLDBField('access');
|
||||
$field->setAttributes(XMLDB_TYPE_CHAR, '20', null, XMLDB_NOTNULL, null, null, null, 'allow', 'mnet_host_id');
|
||||
|
||||
/// Launch rename field accessctrl
|
||||
$result = $result && rename_field($table, $field, 'accessctrl');
|
||||
|
Loading…
x
Reference in New Issue
Block a user