Commit f8436cad authored by Rien's avatar Rien

OK, quotes should not be _that_ big

parent 9ff1e978
......@@ -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
......
......@@ -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')
)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment