From fdaacd8b7054e2d16750624c6012b4aef023ba5b Mon Sep 17 00:00:00 2001 From: moodler Date: Wed, 24 Jan 2007 13:17:03 +0000 Subject: [PATCH] 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 --- lib/db/upgrade.php | 1 + 1 file changed, 1 insertion(+) 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'); -- 2.39.5