Add full specs for current field in rename_field() PHP
authorstronk7 <stronk7>
Wed, 24 Jan 2007 16:54:49 +0000 (16:54 +0000)
committerstronk7 <stronk7>
Wed, 24 Jan 2007 16:54:49 +0000 (16:54 +0000)
generation from the editor. Part of MDL-8296

admin/xmldb/actions/view_table_php/view_table_php.class.php

index b31676176b25e828ca4f7d0f27c01fc854f8ada4..338d54fad1e4a57105af80f773d0b2b1f3b59ab6 100644 (file)
@@ -418,6 +418,7 @@ class view_table_php extends XMLDBAction {
         $result .= '    /// Rename field ' . $field->getName() . ' on table ' . $table->getName() . ' to NEWNAMEGOESHERE'. XMLDB_LINEFEED;
         $result .= '        $table = new XMLDBTable(' . "'" . $table->getName() . "'" . ');' . XMLDB_LINEFEED;
         $result .= '        $field = new XMLDBField(' . "'" . $field->getName() . "'" . ');' . XMLDB_LINEFEED;
+        $result .= '        $field->setAttributes(' . $field->getPHP(true) . ');' . XMLDB_LINEFEED;
 
     /// Launch the proper DDL
         $result .= XMLDB_LINEFEED;