From a8f03c1180642e73b0c3f02d18ee7654ac29c59b Mon Sep 17 00:00:00 2001 From: rsakeys <5@rsakeys.org> Date: Tue, 7 Apr 2020 19:37:31 +0100 Subject: [PATCH] Add question_id column --- houdini/data/redemption.py | 1 + 1 file changed, 1 insertion(+) diff --git a/houdini/data/redemption.py b/houdini/data/redemption.py index 24031e7..d408abc 100644 --- a/houdini/data/redemption.py +++ b/houdini/data/redemption.py @@ -106,6 +106,7 @@ class RedemptionBook(db.Model): class RedemptionBookWord(db.Model): __tablename__ = 'redemption_book_word' + question_id = db.Column(db.Integer, primary_key=True, server_default=db.text("nextval('\"redemption_book_word_question_id_seq\"'::regclass)")) book_id = db.Column(db.ForeignKey('redemption_book.id', ondelete='CASCADE', onupdate='CASCADE'), primary_key=True, nullable=False) page = db.Column(db.SmallInteger, primary_key=True, nullable=False, server_default=db.text("1"))