summaryrefslogtreecommitdiff
path: root/alembic/templates
diff options
context:
space:
mode:
authorDanCardin <DanCardin@users.noreply.github.com>2021-12-21 14:07:23 -0500
committerGitHub <noreply@github.com>2021-12-21 20:07:23 +0100
commit1740bcbc16ccbbe557e02e85b12d6629c218ad53 (patch)
treed5ea3ff89730abbb8d21550e0f4511691c60c0ca /alembic/templates
parent2719c0ef1917af0b74b9d642a75c9b6dd5cf537a (diff)
downloadalembic-1740bcbc16ccbbe557e02e85b12d6629c218ad53.tar.gz
docs: Add missing engine.dispose() call to the asyncio cookbook example. (#973)
Diffstat (limited to 'alembic/templates')
-rw-r--r--alembic/templates/async/env.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/alembic/templates/async/env.py b/alembic/templates/async/env.py
index ade3dc4..4ac2b6a 100644
--- a/alembic/templates/async/env.py
+++ b/alembic/templates/async/env.py
@@ -77,6 +77,8 @@ async def run_migrations_online():
async with connectable.connect() as connection:
await connection.run_sync(do_run_migrations)
+ await connectable.dispose()
+
if context.is_offline_mode():
run_migrations_offline()