]> git.ipfire.org Git - thirdparty/sqlalchemy/alembic.git/commit
Add EnvironmentContext and Config to MigrationContext
authorMarc Abramowitz <marc@marc-abramowitz.com>
Sat, 17 May 2014 18:14:38 +0000 (11:14 -0700)
committerMarc Abramowitz <marc@marc-abramowitz.com>
Mon, 19 May 2014 20:15:24 +0000 (13:15 -0700)
commita4c11c2643b64ee7b83ce1e67406738b8ea39857
tree099f56871597574c0a8ab7224a7ff9d1da7f6e3e
parentc384dd6e145d6dc3d178bea9fa08f0ce9b135e6e
Add EnvironmentContext and Config to MigrationContext

This lets migrations do stuff like:

    op.get_context().config.get_main_option('schema')

where `schema` is a custom option that I added to alembic.ini
alembic/environment.py
alembic/migration.py