On 06/16/2016 04:25 PM, Chris Frey wrote:
Hi, Is there a way to make alembic commit all DDL and data changes completely and begin a new transaction for each script? Suppose I was upgrading and there were 3 migration scripts that needed to run. Suppose 2 of them passed, but the 3rd had a bug in the SQL and failed. It would be nice if alembic's alembic_version would contain the result of the 2 succeeding migrations.
sure thing: http://alembic.readthedocs.io/en/latest/api/runtime.html?highlight=transaction_per_migration#alembic.runtime.environment.EnvironmentContext.configure.params.transaction_per_migration
Thanks, - Chris
-- You received this message because you are subscribed to the Google Groups "sqlalchemy-alembic" group. To unsubscribe from this group and stop receiving emails from it, send an email to sqlalchemy-alembic+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.