]> git.mjollnir.org Git - moodle.git/commitdiff
A small bug in rename_field means that you need to specify the field in detail for...
authormoodler <moodler>
Wed, 24 Jan 2007 13:17:03 +0000 (13:17 +0000)
committermoodler <moodler>
Wed, 24 Jan 2007 13:17:03 +0000 (13:17 +0000)
This will be fixed by Eloy later.

MDL-8237

lib/db/upgrade.php

index a6f91c1000de24ad1ce8e606abb90c8228a2a4ee..bfc5871e8668cef47d906e464fb1d8746d003f2b 100644 (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');