Change name field back to a normal string

Our prod MySQL does not support an index on a UTF8 field of this size; thankfully, we don't need UTF8 here
This commit is contained in:
Joseph Schorr 2018-03-02 13:23:30 -05:00
parent e992e576b2
commit ff1773bd28

View file

@ -13,13 +13,12 @@ down_revision = 'b4c2d45bc132'
from alembic import op
import sqlalchemy as sa
from sqlalchemy.dialects import mysql
from util.migrate import UTF8CharField
def upgrade(tables):
# ### commands auto generated by Alembic - please adjust! ###
op.create_table('disablereason',
sa.Column('id', sa.Integer(), nullable=False),
sa.Column('name', UTF8CharField(length=255), nullable=False),
sa.Column('name', sa.String(length=255), nullable=False),
sa.PrimaryKeyConstraint('id', name=op.f('pk_disablereason'))
)
op.create_index('disablereason_name', 'disablereason', ['name'], unique=True)