Fix syntax error in IgnoreList table model

This commit is contained in:
Ben 2019-08-19 02:17:52 +01:00
parent 2605664edc
commit 4bc7fe0dca

View File

@ -22,7 +22,7 @@ class BuddyRequest(db.Model):
class IgnoreList(db.Model): class IgnoreList(db.Model):
__tablename__ = 'ignore_list' __tablename__ = 'ignore_list'
penguin_id = db.Column(db.ForeignKey('penguin.id', ondelete='CASCADE', onupdate='CASCADE'), primary_key=True, penguin_id = db.Column(db.ForeignKey('penguin.id', ondelete='CASCADE', onupdate='CASCADE'), primary_key=True,
nullable=False), nullable=False)
ignore_id = db.Column(db.ForeignKey('penguin.id', ondelete='CASCADE', onupdate='CASCADE'), primary_key=True, ignore_id = db.Column(db.ForeignKey('penguin.id', ondelete='CASCADE', onupdate='CASCADE'), primary_key=True,
nullable=False, index=True) nullable=False, index=True)