Merge pull request #320 from strayge/pr/column-description-diff

Fix changed column descriptions in diffs
This commit is contained in:
long2ice 2023-08-22 09:59:46 +08:00 committed by GitHub
commit 2bc23103dc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -486,6 +486,9 @@ class Migrate:
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