I've got a model with a non-null field which I deleted:
class Spam(models.Model):
slug = models.SlugField(allow_unicode=True) # deleted
After I made the migrations and applied them, I wanted to revert them. But obviously, this results in
django.db.utils.IntegrityError: NOT NULL constraint failed: eggs_spam.slug
How can I revert the migration?
There is an easier way:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With