Database Schema Upgrade (deprecated)

1
# Code was removed, since it was ugly and deprecated.

More like this

  1. Cookie based Messages (deprecated) by guettli 4 years ago
  2. Pass db.Field to newforms.Widget by guettli 5 years, 10 months ago
  3. check if form has changed (deprecated) by guettli 5 years, 2 months ago
  4. Pull ID from arbitrary sequence by nirvdrum 5 years, 10 months ago
  5. post_migrate handler to load initial SQL after migrating with south by stingydrone 2 years, 4 months ago

Comments

Alberto Paro (on October 31, 2008):

For postgresql it's better use: http://apgdiff.sourceforge.net/

java -jar apgdiff.jar original_schema_dump.sql new_schema_dump.sql > diff.sql

It's more easy and safe then kdiff3. :-)

#

guettli (on November 3, 2008):

kdiff3 is a visual tool. Its very safe since it does only show the differences. The ALTER statements need to be created by hand.

Neverthless, thank you for the comment. I will look at apgdiff.

#

guettli (on August 31, 2009):

django-evolution is the solution: It handles database upgrades for you. With django-evolution the above snippets is not needed. Except for verifying that two databases are in sync.

#

(Forgotten your password?)