1

Im trying to revert a migration by migrating to previous migration but i got this error:

django.db.utils.IntegrityError: column "field_name" contains null values

this problem occurs when a migrations.RemoveField is in the migration which is reverted to. when the migration is reverting a field by null=False is created. How can i resolve the problem?

  • 1
    Does this answer your question? [Revert Django 1.7 RemoveField migration](https://stackoverflow.com/questions/28878428/revert-django-1-7-removefield-migration) – Josh Feb 10 '22 at 01:02

0 Answers0