Skip to content

Commit

Permalink
fix changed column descriptions in diffs
Browse files Browse the repository at this point in the history
  • Loading branch information
strayge committed Aug 21, 2023
1 parent 8edd834 commit 6d83c37
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions aerich/migrate.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6d83c37

Please sign in to comment.