Module ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias Assign NameStore AttributeLoad NameLoad attr If UnaryOpNot AttributeLoad NameLoad attr body Expr Call NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign NameStore AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Str attr FunctionDef arguments args defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr keyword NameLoad With Call AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args defaults body Expr Str Assign NameStore AttributeLoad AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Str attr attr Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad TryFinally body With Call AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr finalbody Expr Call AttributeLoad NameLoad attr decorator_list If Call AttributeLoad NameLoad attr body Expr Call NameLoad orelse Expr Call NameLoad
N/A __future__ with_statement alembic context flask current_app logging.config fileConfig N/A config N/A context config N/A N/A N/A current_app testing N/A N/A N/A fileConfig N/A config config_file_name N/A N/A N/A config set_main_option sqlalchemy.url N/A N/A N/A current_app config get SQLALCHEMY_DATABASE_URI N/A target_metadata N/A N/A N/A current_app extensions N/A migrate metadata run_migrations_offline N/A N/A N/A N/A N/A Run migrations in 'offline' mode.

    This configures the context with just a URL
    and not an Engine, though an Engine is acceptable
    here as well.  By skipping the Engine creation
    we don't even need a DBAPI to be available.

    Calls to context.execute() here emit the given string to the
    script output.

     N/A url N/A N/A config get_main_option sqlalchemy.url N/A N/A N/A context configure url url N/A N/A N/A context begin_transaction N/A N/A N/A N/A context run_migrations N/A run_migrations_online N/A N/A N/A N/A N/A Run migrations in 'online' mode.

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

     N/A engine N/A N/A N/A N/A current_app extensions N/A sqlalchemy db engine N/A connection N/A N/A engine connect N/A N/A N/A context configure connection connection target_metadata target_metadata N/A N/A N/A N/A N/A context begin_transaction N/A N/A N/A N/A context run_migrations N/A N/A N/A N/A connection close N/A N/A N/A N/A context is_offline_mode N/A N/A N/A run_migrations_offline N/A N/A N/A run_migrations_online