forked from MarseyWorld/MarseyWorld
remove now-unnecessary app_id column
parent
517ed8a9d3
commit
2154684751
|
@ -13,7 +13,6 @@ class Vote(Base):
|
||||||
post_id = Column(Integer, ForeignKey("posts.id"), primary_key=True)
|
post_id = Column(Integer, ForeignKey("posts.id"), primary_key=True)
|
||||||
user_id = Column(Integer, ForeignKey("users.id"), primary_key=True)
|
user_id = Column(Integer, ForeignKey("users.id"), primary_key=True)
|
||||||
vote_type = Column(Integer)
|
vote_type = Column(Integer)
|
||||||
app_id = Column(Integer, ForeignKey("oauth_apps.id"))
|
|
||||||
real = Column(Boolean, default=True)
|
real = Column(Boolean, default=True)
|
||||||
coins = Column(Integer, default=1, nullable=False)
|
coins = Column(Integer, default=1, nullable=False)
|
||||||
created_utc = Column(Integer)
|
created_utc = Column(Integer)
|
||||||
|
@ -44,7 +43,6 @@ class CommentVote(Base):
|
||||||
comment_id = Column(Integer, ForeignKey("comments.id"), primary_key=True)
|
comment_id = Column(Integer, ForeignKey("comments.id"), primary_key=True)
|
||||||
user_id = Column(Integer, ForeignKey("users.id"), primary_key=True)
|
user_id = Column(Integer, ForeignKey("users.id"), primary_key=True)
|
||||||
vote_type = Column(Integer)
|
vote_type = Column(Integer)
|
||||||
app_id = Column(Integer, ForeignKey("oauth_apps.id"))
|
|
||||||
real = Column(Boolean, default=True)
|
real = Column(Boolean, default=True)
|
||||||
coins = Column(Integer, default=1, nullable=False)
|
coins = Column(Integer, default=1, nullable=False)
|
||||||
created_utc = Column(Integer)
|
created_utc = Column(Integer)
|
||||||
|
|
|
@ -125,7 +125,6 @@ def vote_post_comment(target_id, new, v, cls, vote_cls):
|
||||||
vote = Vote(user_id=v.id,
|
vote = Vote(user_id=v.id,
|
||||||
vote_type=new,
|
vote_type=new,
|
||||||
post_id=target_id,
|
post_id=target_id,
|
||||||
app_id=v.client.application.id if v.client else None,
|
|
||||||
real=real,
|
real=real,
|
||||||
coins=coin_value
|
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 = CommentVote(user_id=v.id,
|
||||||
vote_type=new,
|
vote_type=new,
|
||||||
comment_id=target_id,
|
comment_id=target_id,
|
||||||
app_id=v.client.application.id if v.client else None,
|
|
||||||
real=real,
|
real=real,
|
||||||
coins=coin_value
|
coins=coin_value
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue