From 9889d9492ba8e321eb6eca4f64cf6eb107b55909 Mon Sep 17 00:00:00 2001 From: long2ice Date: Mon, 28 Sep 2020 17:22:05 +0800 Subject: [PATCH] add ? when ask rename --- aerich/migrate.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aerich/migrate.py b/aerich/migrate.py index 0303e6d..fb9ca21 100644 --- a/aerich/migrate.py +++ b/aerich/migrate.py @@ -278,7 +278,7 @@ def diff_model(cls, old_model: Type[Model], new_model: Type[Model], upgrade=True if old_field_dict == new_field_dict: if upgrade: is_rename = click.prompt( - f"Rename {diff_key} to {new_key}", + f"Rename {diff_key} to {new_key}?", default=True, type=bool, show_choices=True,