From 7df67aca829ab31b895b96c16ce37d1b463c2be5 Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Sat, 30 Apr 2022 01:48:55 +0200 Subject: [PATCH] updated_at should have utcnow() onupdate, not now() --- platypush/entities/_base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platypush/entities/_base.py b/platypush/entities/_base.py index 0f5195727..f64030c57 100644 --- a/platypush/entities/_base.py +++ b/platypush/entities/_base.py @@ -44,7 +44,7 @@ class Entity(Base): DateTime(timezone=False), default=datetime.utcnow(), nullable=False ) updated_at = Column( - DateTime(timezone=False), default=datetime.utcnow(), onupdate=datetime.now() + DateTime(timezone=False), default=datetime.utcnow(), onupdate=datetime.utcnow() ) UniqueConstraint(external_id, plugin)