set --safe bool

This commit is contained in:
long2ice
2020-06-08 18:07:41 +08:00
parent bf194ca8ce
commit 7413a05e19
2 changed files with 5 additions and 3 deletions

View File

@@ -190,7 +190,7 @@ async def init(
@cli.command(help="Generate schema and generate app migrate location.")
@click.option(
"--safe",
is_flag=True,
type=bool,
default=True,
help="When set to true, creates the table only when it does not already exist.",
show_default=True,