diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 2eb02fe..693a619 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -1,13 +1,15 @@ ========= ChangeLog ========= - -0.1 +0.2 === 0.2.0 ----- - Update model file find method. +- Set ``--safe`` bool. +0.1 +=== 0.1.9 ----- - Fix default_connection when upgrade diff --git a/aerich/cli.py b/aerich/cli.py index 816f0c0..f279c34 100644 --- a/aerich/cli.py +++ b/aerich/cli.py @@ -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,