Merge "Close database connection for alembic env"
This commit is contained in:
commit
ac99206e43
@ -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…
x
Reference in New Issue
Block a user