Thursday 15 March 2012

mysql - Django migrations don't recognize removal of NOT NULL -



mysql - Django migrations don't recognize removal of NOT NULL -

so i've made jump south native django migrations. went smoothly migrating migrations, recent changes have not worked.

i had model thus:

class mymodel(models.model): f1 = models.integerfield()

which changed this:

class mymodel(models.model): f1 = models.integerfield(null=true,default=none,blank=true)

this alter not beingness picked ./manage.py makemigrations, there not null on field means can't create instances of mymodel f1 left blank - get:

integrityerror: (1048, "column 'f1' cannot null")

what can do? i'm using mysql backend.

mysql django django-migrations

No comments:

Post a Comment