def run_migrations_online():
set_mysql_engine()<EOL>engine = session.create_engine(neutron_config.database.connection)<EOL>connection = engine.connect()<EOL>context.configure(<EOL>connection=connection,<EOL>target_metadata=target_metadata,<EOL>include_object=include_object,<EOL>version_table=alembic_migrations.VERSION_TABLE<EOL>)<EOL>try:<EOL><INDENT>with context.begin_transaction():<EOL><INDENT>context.run_migrations()<EOL><DEDENT><DEDENT>finally:<EOL><INDENT>connection.close()<EOL>engine.dispose()<EOL><DEDENT>
Run migrations in 'online' mode.

    In this scenario we need to create an Engine
    and associate a connection with the context.