mirror of
https://github.com/doctrine/orm.git
synced 2026-03-24 06:52:09 +01:00
[Postgres] Default column value (CURRENT_TIMESTAMP) "date/time value current is no longer supported" #5491
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @BabakMN on GitHub (Apr 4, 2017).
Originally assigned to: @Ocramius on GitHub.
This is a preliminary issue I will provide more information if needed.
It seems that the schema tool is wrapping the column default value in single quotes so I get a query like,
Which causes,
Column definition:
If
CURRENT_TIMESTAMPis not wrapped in single quotes it will work.Perhaps
defaultis for constant string values and I should usecolumnDefinitioninstead?@Ocramius commented on GitHub (Apr 4, 2017):
Yep: "default" does evaluate to a constant, not to an expression.
On 4 Apr 2017 07:51, "BabakMN" notifications@github.com wrote:
@Ocramius commented on GitHub (Apr 4, 2017):
Closing as
invalidandduplicate( https://github.com/doctrine/dbal/issues/2582 )