diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2012-01-24 12:20:33 -0500 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2012-01-24 12:20:33 -0500 |
commit | 72416bcde500f48a66310eafc86c071ee2672d09 (patch) | |
tree | b732616341f29e5b5105b02ae749ade44c6bcdb3 /CHANGES | |
parent | 228ceec575ed45b251d98367a05d58a3e4321934 (diff) | |
download | alembic-72416bcde500f48a66310eafc86c071ee2672d09.tar.gz |
- 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.
Diffstat (limited to 'CHANGES')
-rw-r--r-- | CHANGES | 17 |
1 files changed, 17 insertions, 0 deletions
@@ -1,3 +1,20 @@ +0.2.0 +===== +- [feature] API rearrangement allows everything + Alembic does to be represented by contextual + objects, including EnvironmentContext, + MigrationContext, and Operations. Other + libraries and applications can now use + things like "alembic.op" without relying + upon global configuration variables. + The rearrangement was done such that + existing migrations should be OK, + as long as they use the pattern + of "from alembic import context" and + "from alembic import op", as these + are now contextual objects, not modules. + [#19] + 0.1.2 ===== - [bug] fix the config.main() function to honor |