def run_migrations_online():

    connection = engine.connect()
    context.configure(
        connection=connection,
        target_metadata=target_metadata
    )

    try:
        with context.begin_transaction():
            context.run_migrations()
    finally:
        connection.close()
Check requirements latest version.
dataset/ETHPy150Open openstack/fuel-web/nailgun/nailgun/db/migration/alembic_migrations/env.py/run_migrations_online--crossover with--dataset/ETHPy150Open Damnever/pigar/pigar/__main__.py/Main.check_reqs_latest_version