syncdb should tell you when it's doing something unexpected
|Reported by:||RoySmith||Owned by:||nobody|
|Component:||Database layer (models, ORM)||Version:||1.3|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
syncdb is documented that it will not alter an existing table. This is fine, but it should at least print a warning message when you run it. As it is, it just prints:
./manage.py syncdb Creating tables ... Installing custom SQL ... Installing indexes ... No fixtures found.
It should say something like "WARNING: Foo model changed, you must update the database manually". Otherwise, people who never noticed this little nugget (or have long since forgotten it) will just have no clue why its not doing what you asked it to do.
Change History (2)
comment:1 Changed 5 years ago by russellm
- Needs documentation unset
- Needs tests unset
- Patch needs improvement unset
- Triage Stage changed from Unreviewed to Someday/Maybe
- Type changed from Bug to New feature