Use close_db decorator on history command
This commit is contained in:
parent
21001c0eda
commit
b97ce0ff2f
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user