]> git.ipfire.org Git - thirdparty/sqlalchemy/alembic.git/commit
check all directives in batch block until recreate selected
authorMike Bayer <mike_mp@zzzcomputing.com>
Mon, 30 Aug 2021 20:02:02 +0000 (16:02 -0400)
committermike bayer <mike_mp@zzzcomputing.com>
Mon, 30 Aug 2021 21:37:21 +0000 (21:37 +0000)
commit27934166f4ab5b954808d71b6e7af37b15d3c5fe
tree33d2c90be15403a8d68867906b824a3381c7ac98
parentff8fd160ad007cd00353a138457275474a122ff2
check all directives in batch block until recreate selected

Fixed regression in batch mode due to :ticket:`883` where the "auto" mode
of batch would fail to accommodate any additional migration directives
beyond encountering an ``add_column()`` directive, due to a mis-application
of the conditional logic that was added as part of this change, leading to
"recreate" mode not being used in cases where it is required for SQLite
such as for unique constraints.

Change-Id: I6315569caff5f3b33d152974ebecc8b18d9cc523
Fixes: #896
alembic/ddl/sqlite.py
docs/build/unreleased/896.rst [new file with mode: 0644]
tests/test_batch.py