Fix references to mysql in migrations

This commit is contained in:
Jake Moshenko 2015-10-23 16:15:09 -04:00
parent 4191d69055
commit a1e92f7150
19 changed files with 10 additions and 29 deletions

View file

@ -12,12 +12,11 @@ down_revision = '214350b6a8b1'
from alembic import op
import sqlalchemy as sa
from sqlalchemy.dialects import mysql
def upgrade(tables):
### commands auto generated by Alembic - please adjust! ###
op.alter_column('repositorybuild', 'resource_key',
existing_type=mysql.VARCHAR(length=255),
existing_type=sa.String(length=255),
nullable=True)
### end Alembic commands ###
@ -25,6 +24,6 @@ def upgrade(tables):
def downgrade(tables):
### commands auto generated by Alembic - please adjust! ###
op.alter_column('repositorybuild', 'resource_key',
existing_type=mysql.VARCHAR(length=255),
existing_type=sa.String(length=255),
nullable=False)
### end Alembic commands ###