Skip to content

Commit

Permalink
Merge pull request #320 from strayge/pr/column-description-diff
Browse files Browse the repository at this point in the history
Fix changed column descriptions in diffs
  • Loading branch information
long2ice authored Aug 22, 2023
2 parents 8edd834 + 6d83c37 commit 2bc2310
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 2bc2310

Please sign in to comment.