fix comments migration; remove unused columns

This commit is contained in:
knst-kotov
2021-12-08 10:28:38 +03:00
parent ea8fffc25d
commit 1c38d51113
3 changed files with 96 additions and 120 deletions

View File

@@ -28,8 +28,5 @@ class Comment(Base):
shout: int = Column(ForeignKey("shout.id"), nullable=False, comment="Shout ID")
replyTo: int = Column(ForeignKey("comment.id"), nullable=True, comment="comment ID")
ratings = relationship(CommentRating, foreign_keys=CommentRating.comment_id)
old_id: str = Column(String, nullable = True)
old_thread: str = Column(String, nullable = True)
# TODO: work in progress, udpate this code