Skip to content

Commit

Permalink
[10.x] update virtualAs description to include all supported databa…
Browse files Browse the repository at this point in the history
…ses (laravel#9094)

* update virtualAs description to include all supported databases
- add PostgreSQL and SQLite

* Update migrations.md

---------

Co-authored-by: Terrence Eisenhower <terrence@mile6.com>
Co-authored-by: Taylor Otwell <taylor@laravel.com>
  • Loading branch information
3 people authored Oct 24, 2023
1 parent 4735488 commit ea932bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion migrations.md
Original file line number Diff line number Diff line change
Expand Up @@ -973,7 +973,7 @@ Modifier | Description
`->unsigned()` | Set INTEGER columns as UNSIGNED (MySQL).
`->useCurrent()` | Set TIMESTAMP columns to use CURRENT_TIMESTAMP as default value.
`->useCurrentOnUpdate()` | Set TIMESTAMP columns to use CURRENT_TIMESTAMP when a record is updated (MySQL).
`->virtualAs($expression)` | Create a virtual generated column (MySQL).
`->virtualAs($expression)` | Create a virtual generated column (MySQL / PostgreSQL / SQLite).
`->generatedAs($expression)` | Create an identity column with specified sequence options (PostgreSQL).
`->always()` | Defines the precedence of sequence values over input for an identity column (PostgreSQL).
`->isGeometry()` | Set spatial column type to `geometry` - the default type is `geography` (PostgreSQL).
Expand Down

0 comments on commit ea932bb

Please sign in to comment.