From 2a9d981d400b5e893142d08d8c79459c4f359831 Mon Sep 17 00:00:00 2001 From: Lei Shi Date: Wed, 22 Nov 2023 17:57:09 +0100 Subject: [PATCH] :bug: changing server default `task.time_created` to `CURRENT_TIMESTAMP` --- alembic/versions/1df05b897d3f_tasks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/alembic/versions/1df05b897d3f_tasks.py b/alembic/versions/1df05b897d3f_tasks.py index 118aed35..b69f645b 100644 --- a/alembic/versions/1df05b897d3f_tasks.py +++ b/alembic/versions/1df05b897d3f_tasks.py @@ -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),