Grammars
3 weeks ago
Blueprint.php
3 weeks ago
Builder.php
3 weeks ago
ColumnDefinition.php
3 weeks ago
ForeignIdColumnDefinition.php
3 weeks ago
ForeignKeyDefinition.php
3 weeks ago
IndexDefinition.php
3 weeks ago
MySqlBuilder.php
3 weeks ago
MySqlSchemaState.php
3 weeks ago
PostgresBuilder.php
3 weeks ago
PostgresSchemaState.php
3 weeks ago
SQLiteBuilder.php
3 weeks ago
SchemaState.php
3 weeks ago
SqlServerBuilder.php
3 weeks ago
SqliteSchemaState.php
3 weeks ago
ColumnDefinition.php
39 lines
| 1 | <?php |
| 2 | |
| 3 | namespace IAWPSCOPED\Illuminate\Database\Schema; |
| 4 | |
| 5 | use IAWPSCOPED\Illuminate\Support\Fluent; |
| 6 | /** |
| 7 | * @method $this after(string $column) Place the column "after" another column (MySQL) |
| 8 | * @method $this always(bool $value = true) Used as a modifier for generatedAs() (PostgreSQL) |
| 9 | * @method $this autoIncrement() Set INTEGER columns as auto-increment (primary key) |
| 10 | * @method $this change() Change the column |
| 11 | * @method $this charset(string $charset) Specify a character set for the column (MySQL) |
| 12 | * @method $this collation(string $collation) Specify a collation for the column (MySQL/PostgreSQL/SQL Server) |
| 13 | * @method $this comment(string $comment) Add a comment to the column (MySQL/PostgreSQL) |
| 14 | * @method $this default(mixed $value) Specify a "default" value for the column |
| 15 | * @method $this first() Place the column "first" in the table (MySQL) |
| 16 | * @method $this from(int $startingValue) Set the starting value of an auto-incrementing field (MySQL / PostgreSQL) |
| 17 | * @method $this generatedAs(string|Expression $expression = null) Create a SQL compliant identity column (PostgreSQL) |
| 18 | * @method $this index(string $indexName = null) Add an index |
| 19 | * @method $this invisible() Specify that the column should be invisible to "SELECT *" (MySQL) |
| 20 | * @method $this nullable(bool $value = true) Allow NULL values to be inserted into the column |
| 21 | * @method $this persisted() Mark the computed generated column as persistent (SQL Server) |
| 22 | * @method $this primary() Add a primary index |
| 23 | * @method $this fulltext(string $indexName = null) Add a fulltext index |
| 24 | * @method $this spatialIndex(string $indexName = null) Add a spatial index |
| 25 | * @method $this startingValue(int $startingValue) Set the starting value of an auto-incrementing field (MySQL/PostgreSQL) |
| 26 | * @method $this storedAs(string $expression) Create a stored generated column (MySQL/PostgreSQL/SQLite) |
| 27 | * @method $this type(string $type) Specify a type for the column |
| 28 | * @method $this unique(string $indexName = null) Add a unique index |
| 29 | * @method $this unsigned() Set the INTEGER column as UNSIGNED (MySQL) |
| 30 | * @method $this useCurrent() Set the TIMESTAMP column to use CURRENT_TIMESTAMP as default value |
| 31 | * @method $this useCurrentOnUpdate() Set the TIMESTAMP column to use CURRENT_TIMESTAMP when updating (MySQL) |
| 32 | * @method $this virtualAs(string $expression) Create a virtual generated column (MySQL/PostgreSQL/SQLite) |
| 33 | * @internal |
| 34 | */ |
| 35 | class ColumnDefinition extends Fluent |
| 36 | { |
| 37 | // |
| 38 | } |
| 39 |