Skip to content

Commit

Permalink
Merge pull request #11590 from rtibbles/on_update
Browse files Browse the repository at this point in the history
Fixes hitherto unnoticed bug that meant time_updated was never set.
  • Loading branch information
rtibbles authored Dec 5, 2023
2 parents c3a04a5 + a4e756f commit c37e3df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kolibri/core/tasks/storage.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ class ORMJob(Base):
saved_job = Column(String)

time_created = Column(DateTime(timezone=True), server_default=sql_func.now())
time_updated = Column(DateTime(timezone=True), server_onupdate=sql_func.now())
time_updated = Column(DateTime(timezone=True), onupdate=sql_func.now())

# Repeat interval in seconds.
interval = Column(Integer, default=0)
Expand Down

0 comments on commit c37e3df

Please sign in to comment.