Module ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias alias ImportFrom alias ImportFrom alias Assign NameStore Call NameLoad Str Expr Call NameLoad AttributeLoad NameLoad attr ImportFrom alias With Call AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Str Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign NameStore Call NameLoad BinOpMod Str AttributeLoad NameLoad attr keyword ListLoad AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call NameLoad NameLoad NameLoad Assign NameStore AttributeLoad NameLoad 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 Call NameLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword Str keyword AttributeLoad NameLoad 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 alembic.config Config sqlalchemy engine_from_config pool logging.config fileConfig flask.ext.alembic FlaskAlembicConfig N/A config N/A FlaskAlembicConfig alembic.ini N/A N/A fileConfig N/A config config_file_name flask current_app N/A N/A N/A current_app app_context N/A 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 flask_app N/A __import__ N/A %s N/A current_app name fromlist N/A N/A current_app name N/A db_obj_name N/A N/A config get_main_option flask_sqlalchemy N/A db_obj N/A getattr flask_app db_obj_name N/A target_metadata N/A db_obj 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 engine_from_config N/A N/A config get_section N/A config config_ini_section prefix sqlalchemy. poolclass N/A pool NullPool 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