Modify ↓
Ticket #432 (closed defect: wontfix)
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: |
Description
My server information:
- Ubuntu 8.04
models.py:
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
Attachments
Change History
Note: See
TracTickets for help on using
tickets.

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