From 7413a05e19e584327b784b0eea47a1472d408974 Mon Sep 17 00:00:00 2001 From: long2ice Date: Mon, 8 Jun 2020 18:07:41 +0800 Subject: [PATCH] set --safe bool --- CHANGELOG.rst | 6 ++++-- aerich/cli.py | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) 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,