Make history command into async function

The close_db decorator requires async functions
This commit is contained in:
Patrick Schneeweis 2020-07-24 09:24:43 -04:00
parent 9bd96a9487
commit 21001c0eda

View File

@ -161,7 +161,7 @@ async def heads(ctx: Context):
@cli.command(help="List all migrate items.")
@click.pass_context
def history(ctx):
async def history(ctx):
versions = Migrate.get_all_version_files()
for version in versions:
click.secho(version, fg=Color.green)