public addColumns ( string $table, array $columns, string | null $placeColumnAfter = null ) : |
||
$table | string | Unprefixed database table name, eg 'log_visit'. |
$columns | array | An array of column name to column type pairs, eg array('my_column_name' => 'VARCHAR(200) NOT NULL', 'column2' => '...') |
$placeColumnAfter | string | null | If specified, the first added column will be added after this specified column name. All following columns will be added after the previous specified in $columns. If you specify a column be sure it actually exists and can be added after this column. |
return |