Increase the status field width
Increase the status field width to 16 to support words like 'ABANDONED', etc. SQLite doesn't seem to actually care about the width so we don't actually need to update the values. This is more of a formality. Change-Id: Ie0e04ba5acc58d48020938493646e8568de2e0df
This commit is contained in:
parent
2c590b82b7
commit
c85d0fbe2c
@ -0,0 +1,27 @@
|
||||
"""Increase status field width
|
||||
|
||||
Revision ID: 56e48a4a064a
|
||||
Revises: 44402069e137
|
||||
Create Date: 2014-05-05 11:49:42.133569
|
||||
|
||||
"""
|
||||
|
||||
# revision identifiers, used by Alembic.
|
||||
revision = '56e48a4a064a'
|
||||
down_revision = '44402069e137'
|
||||
|
||||
from alembic import op
|
||||
import sqlalchemy as sa
|
||||
|
||||
from gertty.dbsupport import sqlite_alter_columns
|
||||
|
||||
def upgrade():
|
||||
sqlite_alter_columns('change', [
|
||||
sa.Column('status', sa.String(16), index=True, nullable=False)
|
||||
])
|
||||
|
||||
|
||||
def downgrade():
|
||||
sqlite_alter_columns('change', [
|
||||
sa.Column('status', sa.String(8), index=True, nullable=False)
|
||||
])
|
@ -44,7 +44,7 @@ change_table = Table(
|
||||
Column('subject', Text, nullable=False),
|
||||
Column('created', DateTime, index=True, nullable=False),
|
||||
Column('updated', DateTime, index=True, nullable=False),
|
||||
Column('status', String(8), index=True, nullable=False),
|
||||
Column('status', String(16), index=True, nullable=False),
|
||||
Column('hidden', Boolean, index=True, nullable=False),
|
||||
Column('reviewed', Boolean, index=True, nullable=False),
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user