Merge pull request #3019 from coreos-inc/mysql-field
Change name field back to a normal string
This commit is contained in:
commit
d2069a4bba
1 changed files with 1 additions and 2 deletions
|
@ -13,13 +13,12 @@ down_revision = 'b4c2d45bc132'
|
||||||
from alembic import op
|
from alembic import op
|
||||||
import sqlalchemy as sa
|
import sqlalchemy as sa
|
||||||
from sqlalchemy.dialects import mysql
|
from sqlalchemy.dialects import mysql
|
||||||
from util.migrate import UTF8CharField
|
|
||||||
|
|
||||||
def upgrade(tables):
|
def upgrade(tables):
|
||||||
# ### commands auto generated by Alembic - please adjust! ###
|
# ### commands auto generated by Alembic - please adjust! ###
|
||||||
op.create_table('disablereason',
|
op.create_table('disablereason',
|
||||||
sa.Column('id', sa.Integer(), nullable=False),
|
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'))
|
sa.PrimaryKeyConstraint('id', name=op.f('pk_disablereason'))
|
||||||
)
|
)
|
||||||
op.create_index('disablereason_name', 'disablereason', ['name'], unique=True)
|
op.create_index('disablereason_name', 'disablereason', ['name'], unique=True)
|
||||||
|
|
Reference in a new issue