🐛 changing server default task.time_created to CURRENT_TIMESTAMP

This commit is contained in:
Lei Shi 2023-11-22 17:57:09 +01:00 committed by GitHub
parent 30ad0151e2
commit 2a9d981d40
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -33,7 +33,7 @@ def upgrade() -> None:
sa.Column(
"time_created",
sa.DateTime(),
server_default=sa.text("now()"),
server_default=sa.text("(CURRENT_TIMESTAMP)"),
nullable=True,
),
sa.Column("time_updated", sa.DateTime(), nullable=True),