addColumn() public method
Creates a SQL command for adding a new DB column.
public $this addColumn ( $table, $column, $type ) | ||
---|---|---|
$table | string |
The table that the new column will be added to. The table name will be properly quoted by the method. |
$column | string |
The name of the new column. 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.