Convert to timezone-aware datetime and properly port over DB contents.

This commit is contained in:
Ben Rog-Wilhelm 2023-06-17 04:06:02 -05:00
parent 5271e7c943
commit bd909f394d
3 changed files with 64 additions and 18 deletions

View file

@ -53,7 +53,7 @@ class Submission(CreatedBase):
task_id = Column(Integer, ForeignKey("tasks_repeatable_scheduled_submissions.id"))
# Visibility states here
state_user_deleted_utc = Column(DateTime, nullable=True) # null if it hasn't been deleted by the user
state_user_deleted_utc = Column(DateTime(timezone=True), nullable=True) # null if it hasn't been deleted by the user
# TBD: state_mod
# TBD: state_mod_set_by
# TBD: state_report