Merge "Close database connection for alembic env"

This commit is contained in:
Jenkins 2013-08-20 19:35:08 +00:00 committed by Gerrit Code Review
commit ac99206e43

View File

@ -69,6 +69,7 @@ def run_migrations_online():
with context.begin_transaction():
context.run_migrations()
connection.close()
if context.is_offline_mode():
run_migrations_offline()