From: moodler Date: Wed, 24 Jan 2007 13:17:03 +0000 (+0000) Subject: A small bug in rename_field means that you need to specify the field in detail for... X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=fdaacd8b7054e2d16750624c6012b4aef023ba5b;p=moodle.git 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 --- diff --git a/lib/db/upgrade.php b/lib/db/upgrade.php index a6f91c1000..bfc5871e86 100644 --- a/lib/db/upgrade.php +++ b/lib/db/upgrade.php @@ -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');