| 148 |
lars |
1 |
<?php
|
|
|
2 |
|
|
|
3 |
namespace Illuminate\Database\Schema;
|
|
|
4 |
|
|
|
5 |
use Illuminate\Support\Fluent;
|
|
|
6 |
|
|
|
7 |
/**
|
|
|
8 |
* @method $this after(string $column) Place the column "after" another column (MySQL)
|
|
|
9 |
* @method $this always(bool $value = true) Used as a modifier for generatedAs() (PostgreSQL)
|
|
|
10 |
* @method $this autoIncrement() Set INTEGER columns as auto-increment (primary key)
|
|
|
11 |
* @method $this change() Change the column
|
|
|
12 |
* @method $this charset(string $charset) Specify a character set for the column (MySQL)
|
|
|
13 |
* @method $this collation(string $collation) Specify a collation for the column (MySQL/PostgreSQL/SQL Server)
|
|
|
14 |
* @method $this comment(string $comment) Add a comment to the column (MySQL/PostgreSQL)
|
|
|
15 |
* @method $this default(mixed $value) Specify a "default" value for the column
|
|
|
16 |
* @method $this first() Place the column "first" in the table (MySQL)
|
|
|
17 |
* @method $this from(int $startingValue) Set the starting value of an auto-incrementing field (MySQL / PostgreSQL)
|
|
|
18 |
* @method $this generatedAs(string|Expression $expression = null) Create a SQL compliant identity column (PostgreSQL)
|
|
|
19 |
* @method $this index(string $indexName = null) Add an index
|
|
|
20 |
* @method $this invisible() Specify that the column should be invisible to "SELECT *" (MySQL)
|
|
|
21 |
* @method $this nullable(bool $value = true) Allow NULL values to be inserted into the column
|
|
|
22 |
* @method $this persisted() Mark the computed generated column as persistent (SQL Server)
|
|
|
23 |
* @method $this primary() Add a primary index
|
|
|
24 |
* @method $this fulltext(string $indexName = null) Add a fulltext index
|
|
|
25 |
* @method $this spatialIndex(string $indexName = null) Add a spatial index
|
|
|
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)
|
|
|
28 |
* @method $this type(string $type) Specify a type for the column
|
|
|
29 |
* @method $this unique(string $indexName = null) Add a unique index
|
|
|
30 |
* @method $this unsigned() Set the INTEGER column as UNSIGNED (MySQL)
|
|
|
31 |
* @method $this useCurrent() Set the TIMESTAMP column to use CURRENT_TIMESTAMP as default value
|
|
|
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)
|
|
|
34 |
*/
|
|
|
35 |
class ColumnDefinition extends Fluent
|
|
|
36 |
{
|
|
|
37 |
//
|
|
|
38 |
}
|