alterColumn() public method
Creates a SQL command for changing the definition of a column.
public $this alterColumn ( $table, $column, $type ) | ||
---|---|---|
$table | string |
The table whose column is to be changed. The table name will be properly quoted by the method. |
$column | string |
The name of the column to be changed. The name will be properly quoted by the method. |
$type | string |
The column type. yii\db\QueryBuilder::getColumnType() will be called to convert the give column type to the physical one. For example, |
return | $this |
The command object itself |
Please login to continue.