Skip to content

Commit 09af702

Browse files
committed
fix into CURRENT_TIMESTAMP
1 parent b2813fd commit 09af702

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

users/migrations/versions/15e14062732d_create_users_table.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def upgrade():
2424
sa.Column("email_updates", sa.Boolean(name="email_updates"),
2525
default=False),
2626
sa.Column("date_added", sa.TIMESTAMP,
27-
server_default=sa.func.now()),
27+
server_default=sa.text("CURRENT_TIMESTAMP")),
2828
sa.Column("latitude", sa.Float),
2929
sa.Column("longitude", sa.Float),
3030
)

0 commit comments

Comments
 (0)