Code

Opened 8 years ago

Closed 7 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: UI/UX:

Description

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.

Attachments (0)

Change History (3)

comment:1 Changed 8 years ago by ubernostrum

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 7 years ago by SmileyChris

  • Triage Stage changed from Unreviewed to Design 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 7 years ago by ubernostrum

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

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.

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.