Skip to content

Commit cc79533

Browse files
authored
Merge pull request #28769 from jhaoda/patch-1
[5.8] Update generatedAs() signature
2 parents 9e20849 + 50c3540 commit cc79533

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Illuminate/Database/Schema/ColumnDefinition.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
namespace Illuminate\Database\Schema;
44

55
use Illuminate\Support\Fluent;
6+
use Illuminate\Database\Query\Expression;
67

78
/**
89
* @method ColumnDefinition after(string $column) Place the column "after" another column (MySQL)
@@ -14,7 +15,7 @@
1415
* @method ColumnDefinition comment(string $comment) Add a comment to the column (MySQL)
1516
* @method ColumnDefinition default(mixed $value) Specify a "default" value for the column
1617
* @method ColumnDefinition first() Place the column "first" in the table (MySQL)
17-
* @method ColumnDefinition generatedAs(string $expression) Create a SQL compliant identity column (PostgreSQL)
18+
* @method ColumnDefinition generatedAs(string|Expression $expression = null) Create a SQL compliant identity column (PostgreSQL)
1819
* @method ColumnDefinition index(string $indexName = null) Add an index
1920
* @method ColumnDefinition nullable(bool $value = true) Allow NULL values to be inserted into the column
2021
* @method ColumnDefinition primary() Add a primary index

0 commit comments

Comments
 (0)