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:
moodler 2007-01-24 13:17:03 +00:00
parent a679d64d39
commit fdaacd8b70

View File

@ -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');