forked from platypush/platypush
updated_at should have utcnow() onupdate, not now()
This commit is contained in:
parent
d29b377cf1
commit
7df67aca82
1 changed files with 1 additions and 1 deletions
|
@ -44,7 +44,7 @@ class Entity(Base):
|
||||||
DateTime(timezone=False), default=datetime.utcnow(), nullable=False
|
DateTime(timezone=False), default=datetime.utcnow(), nullable=False
|
||||||
)
|
)
|
||||||
updated_at = Column(
|
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)
|
UniqueConstraint(external_id, plugin)
|
||||||
|
|
Loading…
Reference in a new issue