mirror of
https://github.com/moodle/moodle.git
synced 2025-04-13 20:42:22 +02:00
Add full specs for current field in rename_field() PHP
generation from the editor. Part of MDL-8296
This commit is contained in:
parent
e9c0b9ecbf
commit
704b9031ac
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user