Django

Code

Ticket #5099 (new)

Opened 1 year ago

Last modified 1 year ago

Provide the ability to update database to reflect changes in model definitions (i.e., schema evolution)

Reported by: Derek Anderson <public@kered.org> Assigned to: nobody
Milestone: Component: Core framework
Version: SVN Keywords: schema evolution feature ALTER TABLE
Cc: DXpublica@telefonica.net Triage Stage: Accepted
Has patch: 0 Needs documentation: 0
Needs tests: 0 Patch needs improvement: 0

Description (Last modified by russellm)

Django needs to provide the ability to evolve database schema - i.e., to update the database representation of project to reflect changes in the model definitions.

The design issues have been discussed here:

http://code.djangoproject.com/wiki/SchemaEvolution

A previous attempt at this feature exists in the form of the schema-evolution branch. This implementation is discussed here:

http://code.djangoproject.com/wiki/SchemaEvolutionDocumentation

However, this design has been rejected by the core developers.

Attachments

django_schema_evolution-SVN5821-patch.txt (87.5 kB) - added by Derek Anderson <public@kered.org> on 08/06/07 12:17:54.
patch against trunk/HEAD (current as of 5821)

Change History

08/06/07 12:17:54 changed by Derek Anderson <public@kered.org>

  • attachment django_schema_evolution-SVN5821-patch.txt added.

patch against trunk/HEAD (current as of 5821)

08/27/07 20:54:03 changed by cheshire

  • needs_better_patch changed.
  • needs_tests changed.
  • needs_docs changed.

Patch doesn't work against HEAD revision. Current trunk does not have management.py file.

08/29/07 07:47:59 changed by Simon G. <dev@simon.net.nz>

  • version changed from SVN to other branch.
  • summary changed from merge the schema-evolution branch into trunk to [schema-evolution] merge the schema-evolution branch into trunk.

09/15/07 15:41:16 changed by PhiR

  • keywords changed from schema evolution to schema evolution feature.

09/25/07 13:51:56 changed by anonymous

  • cc set to DXpublica@telefonica.net.

09/25/07 20:46:24 changed by russellm

  • description changed.
  • summary changed from [schema-evolution] merge the schema-evolution branch into trunk to Provide the ability to update database to reflect changes in model definitions (i.e., schema evolution).
  • version changed from other branch to SVN.
  • keywords changed from schema evolution feature to schema evolution feature ALTER TABLE.
  • has_patch deleted.
  • stage changed from Unreviewed to Accepted.

For the benefit of anyone interested in this feature; the schema-evolution branch will *not* be merged as it currently stands. The design implemented by this branch has been discussed and rejected by the core developers. Feel free to use the patch and/or branch if you find it useful, but it will *not* become the official Django schema evolution implementation.

However, the underlying feature - providing a mechanism for evolving schema - *is* of interest. I've changed the subject, description and status of this ticket to reflect this.


Add/Change #5099 (Provide the ability to update database to reflect changes in model definitions (i.e., schema evolution))




Change Properties
Action