ColumnBlueprint
final class ColumnBlueprint (View source)
Methods
__construct(string $name, ColumnType|string $type, int|string|null $length = null, TableBlueprint|null $table = null)
raw(string $definition)
unsigned(bool $unsigned = true)
nullable(bool $nullable = true)
default(mixed $value)
defaultExpression(string $expression)
autoIncrement(bool $autoIncrement = true)
comment(string $comment)
after(string $column)
renameTo(string $name)
primary(string|null $name = null)
index(string|null $name = null)
unique(string|null $name = null)
fulltext(string|null $name = null)
Details
__construct
__construct(string $name, ColumnType|string $type, int|string|null $length = null, TableBlueprint|null $table = null)
No description