Add - ratajs/Simon-MySQL GitHub Wiki
This method adds new column into table.
Syntax:
$object->add(string $table, string $name, string $type, int $lenth, bool $null, string $where, string $key[, string $data = NULL])
- Object
- - Object of extension.
- Table
- - Table name.
- Name
- - Name of new column.
- Type
- - Type of new column, E. G. varchar for text or int alternatively bigint for number.
- Null
- - Boolean value, if value of column can be empty.
- Where
- - Before or after, where new column is going to insert.
- Key
- - Existing column, which new column is going to be before or after it.
- Data
- - Additional parameters in SQL language about new column.