Use close_db decorator on history command

This commit is contained in:
Patrick Schneeweis 2020-07-24 09:26:29 -04:00
parent 21001c0eda
commit b97ce0ff2f

View File

@ -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: