Skip to content
This repository has been archived by the owner on May 5, 2020. It is now read-only.
ratajs edited this page Feb 27, 2017 · 1 revision

Add

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.
Clone this wiki locally