def METHOD_NAME():
    # ### commands auto generated by Alembic - please adjust! ###
    op.drop_constraint(None, 'start_conditions', type_='foreignkey')
    op.drop_constraint(None, 'start_conditions', type_='foreignkey')
    op.create_foreign_key('start_conditions_ibfk_1', 'start_conditions', 'jobs', ['job_id'], ['id'], onupdate='RESTRICT', ondelete='RESTRICT')
    op.create_foreign_key('start_conditions_ibfk_2', 'start_conditions', 'jobs', ['preceding_job_id'], ['id'], onupdate='RESTRICT', ondelete='RESTRICT')
    op.drop_constraint(None, 'schedules', type_='foreignkey')
    op.create_foreign_key('schedules_ibfk_1', 'schedules', 'pipelines', ['pipeline_id'], ['id'], onupdate='RESTRICT', ondelete='RESTRICT')
    op.add_column('pipelines', sa.Column('emails_for_notifications', mysql.VARCHAR(length=255), nullable=True))
    op.drop_constraint(None, 'params', type_='foreignkey')
    op.drop_constraint(None, 'params', type_='foreignkey')
    op.create_foreign_key('params_ibfk_1', 'params', 'jobs', ['job_id'], ['id'], onupdate='RESTRICT', ondelete='RESTRICT')
    op.create_foreign_key('params_ibfk_2', 'params', 'pipelines', ['pipeline_id'], ['id'], onupdate='RESTRICT', ondelete='RESTRICT')
    op.alter_column('params', 'name',
               existing_type=mysql.VARCHAR(length=255),
               nullable=True)
    op.add_column('jobs', sa.Column('enqueued_workers_count', mysql.INTEGER(), server_default=sa.text("'0'"), autoincrement=False, nullable=False))
    op.add_column('jobs', sa.Column('succeeded_workers_count', mysql.INTEGER(), server_default=sa.text("'0'"), autoincrement=False, nullable=False))
    op.add_column('jobs', sa.Column('failed_workers_count', mysql.INTEGER(), server_default=sa.text("'0'"), autoincrement=False, nullable=False))
    op.drop_constraint(None, 'jobs', type_='foreignkey')
    op.create_foreign_key('jobs_ibfk_1', 'jobs', 'pipelines', ['pipeline_id'], ['id'], onupdate='RESTRICT', ondelete='RESTRICT')
    op.drop_index(op.f('ix_enqueued_tasks_task_namespace'), table_name='enqueued_tasks')
    op.drop_index(op.f('ix_enqueued_tasks_task_name'), table_name='enqueued_tasks')
    # ### end Alembic commands ###