update README.rst
This commit is contained in:
parent
b2115345c0
commit
23620f16d4
@ -45,8 +45,8 @@ Quick Start
|
|||||||
downgrade Downgrade to previous version.
|
downgrade Downgrade to previous version.
|
||||||
heads Show current available heads in migrate location.
|
heads Show current available heads in migrate location.
|
||||||
history List all migrate items.
|
history List all migrate items.
|
||||||
init Init config file and generate migrate location.
|
init Init config file and generate root migrate location.
|
||||||
init-db Generate schema.
|
init-db Generate schema and generate app migrate location.
|
||||||
migrate Generate migrate changes file.
|
migrate Generate migrate changes file.
|
||||||
upgrade Upgrade to latest version.
|
upgrade Upgrade to latest version.
|
||||||
|
|
||||||
@ -62,10 +62,10 @@ Initialization
|
|||||||
|
|
||||||
Usage: aerich init [OPTIONS]
|
Usage: aerich init [OPTIONS]
|
||||||
|
|
||||||
Init config file and generate migrate location, you must exec first.
|
Init config file and generate root migrate location.
|
||||||
|
|
||||||
Options:
|
Options:
|
||||||
-t, --tortoise-orm TEXT Tortoise-ORM config module dict variable.
|
-t, --tortoise-orm TEXT Tortoise-ORM config module dict variable, like settings.TORTOISE_ORM.
|
||||||
[required]
|
[required]
|
||||||
--location TEXT Migrate store location. [default: ./migrations]
|
--location TEXT Migrate store location. [default: ./migrations]
|
||||||
-h, --help Show this message and exit.
|
-h, --help Show this message and exit.
|
||||||
|
@ -137,9 +137,9 @@ def history(ctx):
|
|||||||
click.secho(version, fg=Color.green)
|
click.secho(version, fg=Color.green)
|
||||||
|
|
||||||
|
|
||||||
@cli.command(help="Init config file and generate migrate location.")
|
@cli.command(help="Init config file and generate root migrate location.")
|
||||||
@click.option(
|
@click.option(
|
||||||
"-t", "--tortoise-orm", required=True, help="Tortoise-ORM config module dict variable.",
|
"-t", "--tortoise-orm", required=True, help="Tortoise-ORM config module dict variable, like settings.TORTOISE_ORM.",
|
||||||
)
|
)
|
||||||
@click.option(
|
@click.option(
|
||||||
"--location", default="./migrations", show_default=True, help="Migrate store location."
|
"--location", default="./migrations", show_default=True, help="Migrate store location."
|
||||||
@ -165,7 +165,7 @@ async def init(
|
|||||||
click.secho(f"Success generate config file {config}", fg=Color.green)
|
click.secho(f"Success generate config file {config}", fg=Color.green)
|
||||||
|
|
||||||
|
|
||||||
@cli.command(help="Generate schema.")
|
@cli.command(help="Generate schema and generate app migrate location.")
|
||||||
@click.option(
|
@click.option(
|
||||||
"--safe",
|
"--safe",
|
||||||
is_flag=True,
|
is_flag=True,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user