Schema/Blueprint.php
- Package
- Default
\ShSo\Lacassa\Schema\Blueprint
- Parent(s)
- \Illuminate\Database\Schema\Blueprint
Properties


\ShSo\Lacassa\Schema\MongoConnection $connection
- Type
- \ShSo\Lacassa\Schema\MongoConnection
Methods


ascii(string $column) : \Illuminate\Support\Fluent
Create a new ascii column on the table.
Name | Type | Description |
---|---|---|
$column | string |
Type | Description |
---|---|
\Illuminate\Support\Fluent |


bigint(string $column) : \Illuminate\Support\Fluent
Create a new bigint column on the table.
Name | Type | Description |
---|---|---|
$column | string |
Type | Description |
---|---|
\Illuminate\Support\Fluent |


blob(string $column) : \Illuminate\Support\Fluent
Create a new blob column on the table.
Name | Type | Description |
---|---|---|
$column | string |
Type | Description |
---|---|
\Illuminate\Support\Fluent |


boolean(string $column) : \Illuminate\Support\Fluent
Create a new boolean column on the table.
Name | Type | Description |
---|---|---|
$column | string |
Type | Description |
---|---|
\Illuminate\Support\Fluent |


counter(string $column) : \Illuminate\Support\Fluent
Create a new counter column on the table.
Name | Type | Description |
---|---|---|
$column | string |
Type | Description |
---|---|
\Illuminate\Support\Fluent |


frozen(string $column) : \Illuminate\Support\Fluent
Create a new frozen column on the table.
Name | Type | Description |
---|---|---|
$column | string |
Type | Description |
---|---|
\Illuminate\Support\Fluent |


getAddedColumns() : array
Get the columns on the blueprint that should be added.
Type | Description |
---|---|
array |


inet(string $column) : \Illuminate\Support\Fluent
Create a new inet column on the table.
Name | Type | Description |
---|---|---|
$column | string |
Type | Description |
---|---|
\Illuminate\Support\Fluent |


int(string $column) : \Illuminate\Support\Fluent
Create a new int column on the table.
Name | Type | Description |
---|---|---|
$column | string |
Type | Description |
---|---|
\Illuminate\Support\Fluent |


listCollection(string $column, string $collectionType) : \Illuminate\Support\Fluent
Create a new list column on the table.
Name | Type | Description |
---|---|---|
$column | string | |
$collectionType | string |
Type | Description |
---|---|
\Illuminate\Support\Fluent |


mapCollection(string $column, string $collectionType1, string $collectionType2) : \Illuminate\Support\Fluent
Create a new map column on the table.
Name | Type | Description |
---|---|---|
$column | string | |
$collectionType1 | string | |
$collectionType2 | string |
Type | Description |
---|---|
\Illuminate\Support\Fluent |


primary(string | array $columns, string $name = null, string | null $algorithm = null) : \Illuminate\Support\Fluent
Specify the primary key(s) for the table.
Name | Type | Description |
---|---|---|
$columns | string | array | |
$name | string | |
$algorithm | string | null |
Type | Description |
---|---|
\Illuminate\Support\Fluent |


setCollection(string $column, string $collectionType) : \Illuminate\Support\Fluent
Create a new set column on the table.
Name | Type | Description |
---|---|---|
$column | string | |
$collectionType | string |
Type | Description |
---|---|
\Illuminate\Support\Fluent |


timestamp(string $column) : \Illuminate\Support\Fluent
Create a new timestamp column on the table.
Name | Type | Description |
---|---|---|
$column | string |
Type | Description |
---|---|
\Illuminate\Support\Fluent |


timeuuid(string $column) : \Illuminate\Support\Fluent
Create a new timeuuid column on the table.
Name | Type | Description |
---|---|---|
$column | string |
Type | Description |
---|---|
\Illuminate\Support\Fluent |


toSql(\Illuminate\Database\Connection $connection, \Illuminate\Database\Schema\Grammars\Grammar $grammar) : array
Get the raw SQL statements for the blueprint.
Name | Type | Description |
---|---|---|
$connection | \Illuminate\Database\Connection | |
$grammar | \Illuminate\Database\Schema\Grammars\Grammar |
Type | Description |
---|---|
array |


tuple(string $column, string $tuple1type, string $tuple2type, string $tuple3type) : \Illuminate\Support\Fluent
Create a new tuple column on the table.
Name | Type | Description |
---|---|---|
$column | string | |
$tuple1type | string | |
$tuple2type | string | |
$tuple3type | string |
Type | Description |
---|---|
\Illuminate\Support\Fluent |


uuid(string $column) : \Illuminate\Support\Fluent
Create a new uuid column on the table.
Name | Type | Description |
---|---|---|
$column | string |
Type | Description |
---|---|
\Illuminate\Support\Fluent |


varchar(string $column) : \Illuminate\Support\Fluent
Create a new varchar column on the table.
Name | Type | Description |
---|---|---|
$column | string |
Type | Description |
---|---|
\Illuminate\Support\Fluent |