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: