Quotes should not be unique, and may be a bit bigger

This commit is contained in:
Rien Maertens 2019-02-13 22:55:25 +01:00
parent 1d942ce56b
commit 067c399902
No known key found for this signature in database
GPG key ID: 10C6D8C91DE58E4A

View file

@ -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