From 7dcecfdf59319b14e42c8bb49341cd7d90b4071a Mon Sep 17 00:00:00 2001 From: pluja Date: Sat, 5 Sep 2020 08:41:40 +0200 Subject: [PATCH] Fix database issues --- app/models.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/models.py b/app/models.py index 7b6a4c6..c52544c 100644 --- a/app/models.py +++ b/app/models.py @@ -9,12 +9,12 @@ followers = db.Table('followers', ) channel_association = db.Table('channel_association', - db.Column('channel_id', db.String(30), db.ForeignKey('channel.id')), + db.Column('channel_id', db.Integer, db.ForeignKey('channel.id')), db.Column('user_id', db.Integer, db.ForeignKey('user.id')) ) # Association: CHANNEL --followed by--> [USERS] twitter_association = db.Table('twitter_association', - db.Column('account_id', db.String(30), db.ForeignKey('twitterAccount.id')), + db.Column('account_id', db.Integer, db.ForeignKey('twitterAccount.id')), db.Column('user_id', db.Integer, db.ForeignKey('user.id')) ) # Association: ACCOUNT --followed by--> [USERS]