Make history command into async function
The close_db decorator requires async functions
This commit is contained in:
parent
9bd96a9487
commit
21001c0eda
@ -161,7 +161,7 @@ async def heads(ctx: Context):
|
|||||||
|
|
||||||
@cli.command(help="List all migrate items.")
|
@cli.command(help="List all migrate items.")
|
||||||
@click.pass_context
|
@click.pass_context
|
||||||
def history(ctx):
|
async def history(ctx):
|
||||||
versions = Migrate.get_all_version_files()
|
versions = Migrate.get_all_version_files()
|
||||||
for version in versions:
|
for version in versions:
|
||||||
click.secho(version, fg=Color.green)
|
click.secho(version, fg=Color.green)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user