-
Notifications
You must be signed in to change notification settings - Fork 0
Column
Krzysztof Żyłka edited this page Dec 30, 2022
·
8 revisions
$column = new \krzysztofzylka\DatabaseManager\Column();
Method | Description | Default | Version |
---|---|---|---|
setName(string $name) | Define column name | >= 1.0.0 | |
setAutoincrement(bool $autoincrement) | Is auto increment attribute | false | >= 1.0.0 |
setPrimary(bool $primary) | Is primary column | false | >= 1.0.0 |
setNull(bool $null) | Is null available | true | >= 1.0.0 |
setDefault(mixed $default) | Default value | >= 1.0.0 | |
setType(ColumnType $type, mixed $size = null) | Set column type | >= 1.0.0 | |
setUnsigned(bool $unsigned) | Is unsigned | false | >= 1.0.0 |
addTrigger(Trigger $trigger) | Add trigger | >= 1.0.2 |
List is available in ColumnType enum
Compatible with v1.0.3