]> git.ipfire.org Git - thirdparty/sqlalchemy/alembic.git/commit
- Fixed a regression 0.8 whereby the "multidb" environment template
authorMike Bayer <mike_mp@zzzcomputing.com>
Thu, 20 Aug 2015 22:51:08 +0000 (18:51 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Thu, 20 Aug 2015 22:52:00 +0000 (18:52 -0400)
commite05f0c370dd93a2295e3ebfdffba9d37bd732b48
treef4c4bb3a91edc92dacb8e7d8aff24f9c0eb1651c
parentdf92071025385a33418cf654d1156d1feba85412
- Fixed a regression 0.8 whereby the "multidb" environment template
failed to produce independent migration script segments for the
output template.  This was due to the reorganization of the script
rendering system for 0.8.  To accommodate this change, the
:class:`.MigrationScript` structure will in the case of multiple
calls to :meth:`.MigrationContext.run_migrations` produce lists
for the :attr:`.MigrationScript.upgrade_ops` and
:attr:`.MigrationScript.downgrade_ops` attributes; each :class:`.UpgradeOps`
and :class:`.DowngradeOps` instance keeps track of its own
``upgrade_token`` and ``downgrade_token``, and each are rendered
individually.
fixes #318
12 files changed:
alembic/autogenerate/api.py
alembic/autogenerate/compare.py
alembic/autogenerate/render.py
alembic/autogenerate/rewriter.py
alembic/operations/ops.py
alembic/testing/env.py
alembic/testing/mock.py
docs/build/api/autogenerate.rst
docs/build/changelog.rst
docs/build/conf.py
tests/test_command.py
tests/test_script_production.py