Close database connection for alembic env
Bug: 1213897 Change-Id: I2fdb738b61ff85db9240cf95e2ee26930edd56c0
This commit is contained in:
parent
58cb2fe1ee
commit
872c973dd9
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user