addColumn() public method
Builds and executes a SQL statement for adding a new DB column.
public void 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. The yii\db\QueryBuilder::getColumnType() method will be invoked to convert abstract column type (if any) into the