OK, quotes should not be _that_ big
This commit is contained in:
parent
9ff1e97804
commit
f8436cadd9
2 changed files with 2 additions and 2 deletions
|
@ -22,7 +22,7 @@ class Quote(db.Model):
|
||||||
quoter = db.Column(db.String(255), unique=False, nullable=False)
|
quoter = db.Column(db.String(255), unique=False, nullable=False)
|
||||||
quotee = db.Column(db.String(255), unique=False, nullable=True)
|
quotee = db.Column(db.String(255), unique=False, nullable=True)
|
||||||
channel = db.Column(db.String(255), unique=False, nullable=False)
|
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(
|
created_at = db.Column(
|
||||||
db.DateTime, nullable=False,
|
db.DateTime, nullable=False,
|
||||||
default=datetime.utcnow
|
default=datetime.utcnow
|
||||||
|
|
|
@ -23,7 +23,7 @@ def upgrade():
|
||||||
sa.Column('quoter', sa.String(length=255), nullable=False),
|
sa.Column('quoter', sa.String(length=255), nullable=False),
|
||||||
sa.Column('quotee', sa.String(length=255), nullable=True),
|
sa.Column('quotee', sa.String(length=255), nullable=True),
|
||||||
sa.Column('channel', sa.String(length=255), nullable=False),
|
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.Column('created_at', sa.DateTime(), nullable=False),
|
||||||
sa.PrimaryKeyConstraint('id')
|
sa.PrimaryKeyConstraint('id')
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue