|
15 | 15 | * @method $this default(mixed $value) Specify a "default" value for the column
|
16 | 16 | * @method $this first() Place the column "first" in the table (MySQL)
|
17 | 17 | * @method $this from(int $startingValue) Set the starting value of an auto-incrementing field (MySQL / PostgreSQL)
|
18 |
| - * @method $this generatedAs(string|\Illuminate\Database\Query\Expression $expression = null) Create a SQL compliant identity column (PostgreSQL) |
| 18 | + * @method $this generatedAs(string|\Illuminate\Contracts\Database\Query\Expression $expression = null) Create a SQL compliant identity column (PostgreSQL) |
19 | 19 | * @method $this index(bool|string $indexName = null) Add an index
|
20 | 20 | * @method $this invisible() Specify that the column should be invisible to "SELECT *" (MySQL)
|
21 | 21 | * @method $this nullable(bool $value = true) Allow NULL values to be inserted into the column
|
|
24 | 24 | * @method $this fulltext(bool|string $indexName = null) Add a fulltext index
|
25 | 25 | * @method $this spatialIndex(bool|string $indexName = null) Add a spatial index
|
26 | 26 | * @method $this startingValue(int $startingValue) Set the starting value of an auto-incrementing field (MySQL/PostgreSQL)
|
27 |
| - * @method $this storedAs(string $expression) Create a stored generated column (MySQL/PostgreSQL/SQLite) |
| 27 | + * @method $this storedAs(string|\Illuminate\Contracts\Database\Query\Expression $expression) Create a stored generated column (MySQL/PostgreSQL/SQLite) |
28 | 28 | * @method $this type(string $type) Specify a type for the column
|
29 | 29 | * @method $this unique(bool|string $indexName = null) Add a unique index
|
30 | 30 | * @method $this unsigned() Set the INTEGER column as UNSIGNED (MySQL)
|
31 | 31 | * @method $this useCurrent() Set the TIMESTAMP column to use CURRENT_TIMESTAMP as default value
|
32 | 32 | * @method $this useCurrentOnUpdate() Set the TIMESTAMP column to use CURRENT_TIMESTAMP when updating (MySQL)
|
33 |
| - * @method $this virtualAs(string $expression) Create a virtual generated column (MySQL/PostgreSQL/SQLite) |
| 33 | + * @method $this virtualAs(string|\Illuminate\Contracts\Database\Query\Expression $expression) Create a virtual generated column (MySQL/PostgreSQL/SQLite) |
34 | 34 | */
|
35 | 35 | class ColumnDefinition extends Fluent
|
36 | 36 | {
|
|
0 commit comments