Fix migration so it will downgrade

This commit is contained in:
leigh-mil 2019-02-27 11:40:56 -05:00
parent e00e24f083
commit c5e012e521

View File

@ -25,6 +25,6 @@ def upgrade():
def downgrade(): def downgrade():
# ### commands auto generated by Alembic - please adjust! ### # ### commands auto generated by Alembic - please adjust! ###
op.execute("ALTER TABLE task_orders ALTER COLUMN loa TYPE varchar USING loa[1]") op.execute("ALTER TABLE task_orders ALTER COLUMN loas TYPE varchar USING loas[1]")
op.alter_column('task_orders', 'loas', new_column_name='loa') op.alter_column('task_orders', 'loas', new_column_name='loa')
# ### end Alembic commands ### # ### end Alembic commands ###