class SchemaColumn

Methods

__construct(string $name, ColumnType|null $type, bool $nullable = false, array $options = [])

Create a new schema column instance.

Details

at line 21
__construct(string $name, ColumnType|null $type, bool $nullable = false, array $options = [])

Create a new schema column instance.

Unlike upstream's PHP type strings, the database type is kept, so the PHP types follow the reading connection's driver and fetch options at lookup.

Parameters

string $name
ColumnType|null $type

the database type, or null when it is unknown

bool $nullable
array $options

the values a CHECK constraint from Blueprint's enum() allows