Skip to content

Commit 7f8703b

Browse files
[8.x] Update ColumnDefinition docblock (#37111)
* Update ColumnDefinition docblock * Add startingValue definition * formatting
1 parent 04888df commit 7f8703b

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

Schema/ColumnDefinition.php

+4-3
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
* @method $this change() Change the column
1212
* @method $this charset(string $charset) Specify a character set for the column (MySQL)
1313
* @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)
14+
* @method $this comment(string $comment) Add a comment to the column (MySQL/PostgreSQL)
1515
* @method $this default(mixed $value) Specify a "default" value for the column
1616
* @method $this first() Place the column "first" in the table (MySQL)
1717
* @method $this generatedAs(string|Expression $expression = null) Create a SQL compliant identity column (PostgreSQL)
@@ -20,13 +20,14 @@
2020
* @method $this persisted() Mark the computed generated column as persistent (SQL Server)
2121
* @method $this primary() Add a primary index
2222
* @method $this spatialIndex() Add a spatial index
23-
* @method $this storedAs(string $expression) Create a stored generated column (MySQL/SQLite)
23+
* @method $this startingValue(int $startingValue) Set the starting value of an auto-incrementing field (MySQL/PostgreSQL)
24+
* @method $this storedAs(string $expression) Create a stored generated column (MySQL/PostgreSQL/SQLite)
2425
* @method $this type(string $type) Specify a type for the column
2526
* @method $this unique(string $indexName = null) Add a unique index
2627
* @method $this unsigned() Set the INTEGER column as UNSIGNED (MySQL)
2728
* @method $this useCurrent() Set the TIMESTAMP column to use CURRENT_TIMESTAMP as default value
2829
* @method $this useCurrentOnUpdate() Set the TIMESTAMP column to use CURRENT_TIMESTAMP when updating (MySQL)
29-
* @method $this virtualAs(string $expression) Create a virtual generated column (MySQL/SQLite)
30+
* @method $this virtualAs(string $expression) Create a virtual generated column (MySQL/PostgreSQL/SQLite)
3031
*/
3132
class ColumnDefinition extends Fluent
3233
{

0 commit comments

Comments
 (0)