Fix postgre alter null. (#142)

This commit is contained in:
long2ice
2021-03-28 16:22:49 +08:00
parent 3f52ac348b
commit fa85e05d1d
7 changed files with 13 additions and 16 deletions

View File

@@ -399,6 +399,9 @@ class Migrate:
elif option == "unique":
# because indexed include it
pass
elif option == "nullable":
# change nullable
cls._add_operator(cls._alter_null(model, new_data_field), upgrade)
else:
# modify column
cls._add_operator(