From 6d83c370ad240e2cf0839232ef86d91993628b8a Mon Sep 17 00:00:00 2001 From: strayge Date: Fri, 18 Aug 2023 15:13:41 +0400 Subject: [PATCH] fix changed column descriptions in diffs --- aerich/migrate.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/aerich/migrate.py b/aerich/migrate.py index 2fd5ed4..0d691d5 100644 --- a/aerich/migrate.py +++ b/aerich/migrate.py @@ -486,6 +486,9 @@ def diff_models(cls, old_models: Dict[str, dict], new_models: Dict[str, dict], u elif option == "nullable": # change nullable cls._add_operator(cls._alter_null(model, new_data_field), upgrade) + elif option == "description": + # change comment + cls._add_operator(cls._set_comment(model, new_data_field), upgrade) else: if modified: continue