Close database connection for alembic env

Bug: 1213897

Change-Id: I2fdb738b61ff85db9240cf95e2ee26930edd56c0
This commit is contained in:
Svetlana Shturm 2013-08-19 15:51:42 +04:00
parent 58cb2fe1ee
commit 872c973dd9

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()