Skip to content

Commit

Permalink
Let's just try some defaults
Browse files Browse the repository at this point in the history
  • Loading branch information
MelissaAutumn authored and jdbass committed May 17, 2024
1 parent 5e32bcc commit f840c97
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backend/src/appointment/database/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,8 @@ def touch(self):
"""Updates the time_updated field with the current datetime. This function does not save the model!"""
self.time_updated = datetime.datetime.now()

time_created = Column(DateTime, server_default=func.now(), index=True)
time_updated = Column(DateTime, server_default=func.now(), onupdate=func.now(), index=True)
time_created = Column(DateTime, server_default=func.now(), default=func.now(), index=True)
time_updated = Column(DateTime, server_default=func.now(), default=func.now(), onupdate=func.now(), index=True)


class Subscriber(Base):
Expand Down

0 comments on commit f840c97

Please sign in to comment.