Add full specs for current field in rename_field() PHP

generation from the editor. Part of MDL-8296
This commit is contained in:
stronk7 2007-01-24 16:54:49 +00:00
parent e9c0b9ecbf
commit 704b9031ac

View 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;