Ticket #432 (closed defect: wontfix)

Opened 6 years ago

Last modified 6 years ago

schemamigration cannot automatically detect the change of default value.

Reported by: fcamel@… Owned by: andrew
Priority: major Milestone: 0.7.1
Component: commands Version: 0.7
Keywords: Cc:


My server information:

  • Ubuntu 8.04


class Name(models.Model):
    n = models.IntegerField(default=400)

After changing the default value, "./manage.py schemamigration my_app change_default --auto" responses "Nothing seems to have changed."

I've tried this for both sqlite3 and MySQL 5.0.51a

Change History

comment:1 Changed 6 years ago by andrew

  • Status changed from new to closed
  • Resolution set to wontfix
  • Milestone set to 0.7.1

This is entirely correct behaviour; Django doesn't store defaults in the database, so changing the default doesn't induce a schema migration.

Note: See TracTickets for help on using tickets.