From 067c39990207fa2108b254c7438f14a62e4005d1 Mon Sep 17 00:00:00 2001 From: Rien Maertens Date: Wed, 13 Feb 2019 22:55:25 +0100 Subject: [PATCH] Quotes should not be unique, and may be a bit bigger --- app/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models.py b/app/models.py index b43bbc7..b6265f8 100644 --- a/app/models.py +++ b/app/models.py @@ -22,7 +22,7 @@ class Quote(db.Model): quoter = db.Column(db.String(255), unique=False, nullable=False) quotee = db.Column(db.String(255), unique=False, nullable=True) channel = db.Column(db.String(255), unique=False, nullable=False) - quote = db.Column(db.String(1023), unique=True, nullable=False) + quote = db.Column(db.String(65535), unique=False, nullable=False) created_at = db.Column( db.DateTime, nullable=False, default=datetime.utcnow