Skip to content

Commit

Permalink
Update src/Platforms/PostgreSQL120Platform.php
Browse files Browse the repository at this point in the history
Co-authored-by: Grégoire Paris <postmaster@greg0ire.fr>
  • Loading branch information
allan-simon and greg0ire authored Mar 20, 2024
1 parent 96cd2b6 commit e64dbd2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Platforms/PostgreSQL120Platform.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class PostgreSQL120Platform extends PostgreSQL100Platform
{
public function getDefaultColumnValueSQLSnippet(): string
{
// in case of GENERATED ALWAYS AS ( foobar) STORED column (added in PostgreSQL 12.0)
// in case of GENERATED ALWAYS AS (foobar) STORED column (added in PostgreSQL 12.0)
// postgreSQL's pg_get_expr(adbin, adrelid) will return the 'foobar' part
// which is not the 'default' value of the column but its 'definition'
// so in that case we force it to NULL as DBAL will use that column only for the
Expand Down

0 comments on commit e64dbd2

Please sign in to comment.