Opened 12 years ago

Closed 12 years ago

#3271 closed enhancement (wontfix)

Raise a warning/diff during syncdb if the model changed

Reported by: dimitris@… Owned by: nobody
Component: Core (Management commands) Version:
Severity: normal Keywords:
Cc: Triage Stage: Design decision needed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no


If one changes the model and runs syncdb, the DB tables are not altered and pages raise an error. It would be great if the user was warned about this "error".

One way to do it could be to run inspectdb and diff it with the models and check any differences and print them to the user.

Change History (3)

comment:1 Changed 12 years ago by James Bennett

Hm. I can see problems coming out of this; inspectdb isn't perfect, and on some databases will have particular trouble unearthing foreign-key relations, which means it could end up generating lots of spurious "errors" when nothing has actually changed.

comment:2 Changed 12 years ago by Chris Beaven

Triage Stage: UnreviewedDesign decision needed

This doesn't seem high priority, and I can see problems too. For now, I'll leave open as a decision for someone else.

comment:3 Changed 12 years ago by James Bennett

Resolution: wontfix
Status: newclosed

After nine months with no-one even proposing a patch, I'm going to wontfix this. If somebody has concrete ideas for a safe way to implement it, re-open and attach some code.

Note: See TracTickets for help on using tickets.
Back to Top