]> git.ipfire.org Git - thirdparty/sqlalchemy/alembic.git/commit
- rearrange the internals such that we no longer use global
authorMike Bayer <mike_mp@zzzcomputing.com>
Tue, 24 Jan 2012 17:20:33 +0000 (12:20 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Tue, 24 Jan 2012 17:20:33 +0000 (12:20 -0500)
commit72416bcde500f48a66310eafc86c071ee2672d09
treeb732616341f29e5b5105b02ae749ade44c6bcdb3
parent228ceec575ed45b251d98367a05d58a3e4321934
- rearrange the internals such that we no longer use global
variables to get to things.   The new structure is:

EnvironmentContext -> MigrationContext -> Operation

EnvironmentContext sets up the variables "alembic.context"
and "alembic.op" to act like the modules they used to.
MigrationContext can also exist independently of EnvironmentContext.

Refactoring is still underway here.
CHANGES
alembic/__init__.py
alembic/autogenerate.py
alembic/command.py
alembic/context.py [deleted file]
alembic/environment.py [new file with mode: 0644]
alembic/migration.py [new file with mode: 0644]
alembic/op.py [deleted file]
alembic/operations.py [new file with mode: 0644]
tests/__init__.py
tests/test_versioning.py