From b97ce0ff2f81d76889b73cb625ca38d7e4bb6856 Mon Sep 17 00:00:00 2001 From: Patrick Schneeweis Date: Fri, 24 Jul 2020 09:26:29 -0400 Subject: [PATCH] Use close_db decorator on history command --- aerich/cli.py | 1 + 1 file changed, 1 insertion(+) diff --git a/aerich/cli.py b/aerich/cli.py index b637f4c..3cb6ee0 100644 --- a/aerich/cli.py +++ b/aerich/cli.py @@ -161,6 +161,7 @@ async def heads(ctx: Context): @cli.command(help="List all migrate items.") @click.pass_context +@close_db async def history(ctx): versions = Migrate.get_all_version_files() for version in versions: