From 704b9031acdd9c4e42ed4514d409735a083dc147 Mon Sep 17 00:00:00 2001 From: stronk7 Date: Wed, 24 Jan 2007 16:54:49 +0000 Subject: [PATCH] Add full specs for current field in rename_field() PHP generation from the editor. Part of MDL-8296 --- admin/xmldb/actions/view_table_php/view_table_php.class.php | 1 + 1 file changed, 1 insertion(+) diff --git a/admin/xmldb/actions/view_table_php/view_table_php.class.php b/admin/xmldb/actions/view_table_php/view_table_php.class.php index b31676176b..338d54fad1 100644 --- a/admin/xmldb/actions/view_table_php/view_table_php.class.php +++ b/admin/xmldb/actions/view_table_php/view_table_php.class.php @@ -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; -- 2.39.5