Menu

Data model migration

Raik Gruenberg

Data model migration

Labhamster is using the South program for data scheme migration.

  1. Modify the data model and test with an empty or testing sytem

  2. Prepare migration:

    cd labhamster
    python manage.py schemamigration labhamster --auto
  1. Apply migration to database:
    python manage.py migrate labhamster
  1. Verify, and check in the modified code along with the migration file

  2. production system: check out and apply changes

    svn update
    python manage.py migrate labhamster