Module ImportFrom alias ImportFrom alias ImportFrom alias Assign NameStore AttributeLoad NameLoad attr Expr Call NameLoad AttributeLoad NameLoad attr Import alias identifier ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad ImportFrom alias ImportFrom alias alias Import alias ImportFrom alias Expr Call AttributeLoad NameLoad attr Str NameLoad If UnaryOpNot NameLoad body Assign NameStore Call NameLoad orelse Assign NameStore NameLoad Expr Call AttributeLoad Call AttributeLoad NameLoad attr attr Assign NameStore AttributeLoad NameLoad attr Import alias FunctionDef arguments args defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr 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 Expr Call NameLoad
N/A __future__ with_statement alembic context logging.config fileConfig N/A config N/A context config N/A N/A fileConfig N/A config config_file_name N/A sqlalchemy sa changes.db.types.enum Enum changes.db.types.filestorage FileStorage changes.db.types.guid GUID changes.db.types.json JSONEncodedDict N/A N/A sa Enum Enum N/A N/A sa FileStorage FileStorage N/A N/A sa GUID GUID N/A N/A sa JSONEncodedDict JSONEncodedDict flask current_app changes.config create_app db N/A warnings sqlalchemy.exc SAWarning N/A N/A N/A warnings simplefilter ignore SAWarning N/A N/A current_app N/A N/A app N/A create_app N/A N/A app current_app N/A N/A N/A N/A N/A app app_context push N/A target_metadata N/A db metadata N/A changes.models run_migrations 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 connection N/A N/A N/A db 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 run_migrations