OK, quotes should not be _that_ big

This commit is contained in:
Rien Maertens 2019-02-13 23:29:21 +01:00
parent 9ff1e97804
commit f8436cadd9
No known key found for this signature in database
GPG key ID: 10C6D8C91DE58E4A
2 changed files with 2 additions and 2 deletions

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(65535), unique=False, nullable=False)
quote = db.Column(db.String(16383), unique=False, nullable=False)
created_at = db.Column(
db.DateTime, nullable=False,
default=datetime.utcnow

View file

@ -23,7 +23,7 @@ def upgrade():
sa.Column('quoter', sa.String(length=255), nullable=False),
sa.Column('quotee', sa.String(length=255), nullable=True),
sa.Column('channel', sa.String(length=255), nullable=False),
sa.Column('quote', sa.String(length=65535), nullable=False),
sa.Column('quote', sa.String(length=16383), nullable=False),
sa.Column('created_at', sa.DateTime(), nullable=False),
sa.PrimaryKeyConstraint('id')
)