class Column

Methods

__construct(string $name, ColumnType $type, bool $nullable = true, string|null $default = null, bool $autoIncrement = false, Identity|null $identity = null, Generation|null $generation = null, string|null $onUpdate = null, bool $invisible = false, string|null $collation = null, string|null $comment = null)

Create a column definition.

Details

at line 17
__construct(string $name, ColumnType $type, bool $nullable = true, string|null $default = null, bool $autoIncrement = false, Identity|null $identity = null, Generation|null $generation = null, string|null $onUpdate = null, bool $invisible = false, string|null $collation = null, string|null $comment = null)

Create a column definition.

The default is SQL text, including explicit NULL expressions. A null property means no default expression was supplied or inherited.

Parameters

string $name
ColumnType $type
bool $nullable

whether the column lacks a validated not-null guarantee; a domain restriction alone is insufficient

string|null $default
bool $autoIncrement
Identity|null $identity
Generation|null $generation
string|null $onUpdate
bool $invisible
string|null $collation
string|null $comment