1👍
✅
In order to solve this I did the following:
- Remove the unique constraint, run
schemamigration
and migrate it. - Remove the null=True from
tax_code
, runschemamigration
and migrate it again.
Step 2) has shown a Truncated data
warning, but it ran fine. Re-migrating it doesn’t show any errors, so everything seems fine!
Hope this helps somebody else too!
Source:stackexchange.com