forked from rDrama/rDrama
1
0
Fork 0

remove now-unnecessary app_id column

master
Aevann 2023-07-08 02:19:37 +03:00
parent 517ed8a9d3
commit 2154684751
2 changed files with 0 additions and 4 deletions

View File

@ -13,7 +13,6 @@ class Vote(Base):
post_id = Column(Integer, ForeignKey("posts.id"), primary_key=True)
user_id = Column(Integer, ForeignKey("users.id"), primary_key=True)
vote_type = Column(Integer)
app_id = Column(Integer, ForeignKey("oauth_apps.id"))
real = Column(Boolean, default=True)
coins = Column(Integer, default=1, nullable=False)
created_utc = Column(Integer)
@ -44,7 +43,6 @@ class CommentVote(Base):
comment_id = Column(Integer, ForeignKey("comments.id"), primary_key=True)
user_id = Column(Integer, ForeignKey("users.id"), primary_key=True)
vote_type = Column(Integer)
app_id = Column(Integer, ForeignKey("oauth_apps.id"))
real = Column(Boolean, default=True)
coins = Column(Integer, default=1, nullable=False)
created_utc = Column(Integer)

View File

@ -125,7 +125,6 @@ def vote_post_comment(target_id, new, v, cls, vote_cls):
vote = Vote(user_id=v.id,
vote_type=new,
post_id=target_id,
app_id=v.client.application.id if v.client else None,
real=real,
coins=coin_value
)
@ -133,7 +132,6 @@ def vote_post_comment(target_id, new, v, cls, vote_cls):
vote = CommentVote(user_id=v.id,
vote_type=new,
comment_id=target_id,
app_id=v.client.application.id if v.client else None,
real=real,
coins=coin_value
)