Code

Opened 6 years ago

Closed 6 years ago

Last modified 6 years ago

#7674 closed (invalid)

simple SchemaEvolution

Reported by: tmbdev Owned by: nobody
Component: Uncategorized Version: master
Severity: Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

Description

I read the discussion of SchemaEvolution in the wiki. General automatic SchemaEvolution is hard, but that doesn't mean that the simple cases can't be handled.

In particular, I think syncdb should handle:

  • add a column (including adding a new foreign key)
  • remove a column
  • change the type of a column (fails if the types aren't convertible)

This would probably cover 99% of the schema evolution needs people have.

Attachments (0)

Change History (2)

comment:1 Changed 6 years ago by mtredinnick

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Resolution set to invalid
  • Status changed from new to closed

This isn't really a bug report. It's just a feature wish and design proposals should be on the django-dev mailing list. More specifically, see django-evolution and the many threads on the mailing lists about when/if this will become part of contrib one day.

comment:2 Changed 6 years ago by Karen Tracey <kmtracey@…>

Also see other tickets like #5934, which has been accepted as a long-term nice-to-have. I don't believe the core devs will be interested in spending much effort on a partial solution in the interim. The most productive way to get schema evolution into Django is to work with one of the existing external projects and help get it to the point where it might be considered as an addition to core.

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.