From ff1773bd28a7ca387f1d38df766102aed8e9114a Mon Sep 17 00:00:00 2001 From: Joseph Schorr Date: Fri, 2 Mar 2018 13:23:30 -0500 Subject: [PATCH] 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 --- .../61cadbacb9fc_add_ability_for_build_triggers_to_be_.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/data/migrations/versions/61cadbacb9fc_add_ability_for_build_triggers_to_be_.py b/data/migrations/versions/61cadbacb9fc_add_ability_for_build_triggers_to_be_.py index 760414c5f..fc03f48b4 100644 --- a/data/migrations/versions/61cadbacb9fc_add_ability_for_build_triggers_to_be_.py +++ b/data/migrations/versions/61cadbacb9fc_add_ability_for_build_triggers_to_be_.py @@ -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)