renameColumn() public method
Builds a SQL statement for renaming a column.
| public string renameColumn ( $table, $oldName, $newName ) | ||
|---|---|---|
| $table | string |
The table whose column is to be renamed. The name will be properly quoted by the method. |
| $oldName | string |
The old name of the column. The name will be properly quoted by the method. |
| $newName | string |
The new name of the column. The name will be properly quoted by the method. |
| return | string |
The SQL statement for renaming a DB column. |
| throws | yii\db\Exception | |
Please login to continue.