So I've recently made the jump from South to native Django migrations. All went smoothly with migrating my migrations, however some recent changes have not worked.
I had a model thus:
class MyModel(models.Model):
f1 = models.IntegerField()
Which I changed to this:
class MyModel(models.Model):
f1 = models.IntegerField(null=True,default=None,blank=True)
This change is not being picked up by ./manage.py makemigrations
, but there is a NOT NULL
on the field that means I can't create instances of MyModel
with f1
left blank - I get:
IntegrityError: (1048, "Column 'f1' cannot be null")
What can I do? I'm using a MySQL backend.