Migrations: updating migrations to be easier to automatic for upgrades from 0.6 or...
commitb238e16282b9e7ca6c9ca72449903224ade9f28f
authorPeter Krenesky <peter@osuosl.org>
Tue, 7 Jun 2011 03:18:46 +0000 (6 20:18 -0700)
committerPeter Krenesky <peter@osuosl.org>
Tue, 7 Jun 2011 03:26:40 +0000 (6 20:26 -0700)
tree6f5392abfdd924b000bf545a4bd0e8c5c2183d6d
parent6e0bc75bf6bf2e2978503a64f74ea763d5139216
Migrations: updating migrations to be easier to automatic for upgrades from 0.6 or earlier:

   since the ganeti app was renamed south doesn't know what migration a user was at.  That information is stored with the ganeti app.
That would mean the admin would have to fake apply 6 migration files.  That will be too complicated for many people when it can be avoided.

The solution:
   * create app deprecated.ganeti that contains just the migrations from 0.4 through 0.6
   * update 0.7 migrations to use ganeti_web for all tables
   * add migrations for 0.7 that will convert values from 0.6 tables if they exist, and then delete the 0.6 tables

note that the deprecated.ganeti namespace was chosen because it means a reference to "ganeti" will still not work, but django will still
treat it as the old "ganeti".   django only uses the last package in the app path as the name.
17 files changed:
deprecated/__init__.py [new file with mode: 0644]
deprecated/ganeti/__init__.py [new file with mode: 0644]
deprecated/ganeti/migrations/0001_version_0_4.py [moved from ganeti_web/migrations/0001_version_0_4.py with 99% similarity]
deprecated/ganeti/migrations/0002_version_0_5.py [moved from ganeti_web/migrations/0002_version_0_5.py with 99% similarity]
deprecated/ganeti/migrations/0003_version_0_6.py [moved from ganeti_web/migrations/0003_version_0_6.py with 99% similarity]
deprecated/ganeti/migrations/0004_version_0_6_import_nodes.py [moved from ganeti_web/migrations/0004_version_0_6_import_nodes.py with 99% similarity]
deprecated/ganeti/migrations/0005_version_0_6_set_virtual_machine_nodes.py [moved from ganeti_web/migrations/0005_version_0_6_set_virtual_machine_nodes.py with 99% similarity]
deprecated/ganeti/migrations/__init__.py [new file with mode: 0644]
deprecated/ganeti/models.py [new file with mode: 0644]
ganeti_web/fields.py
ganeti_web/migrations/0001_version_0_7.py [copied from ganeti_web/migrations/0006_version_0_7.py with 53% similarity]
ganeti_web/migrations/0002_version_0_7_convert_old_tables.py [copied from ganeti_web/migrations/0007_version_0_7_convert_perms.py with 54% similarity]
ganeti_web/migrations/0003_version_0_7_delete_old_tables.py [copied from ganeti_web/migrations/0007_version_0_7_convert_perms.py with 57% similarity]
ganeti_web/migrations/0004_version_0_7_convert_perms.py [moved from ganeti_web/migrations/0007_version_0_7_convert_perms.py with 62% similarity]
ganeti_web/migrations/0005_version_0_7_delete_old_perm_tables.py [moved from ganeti_web/migrations/0006_version_0_7.py with 55% similarity]
ganeti_web/migrations/0008_version_0_7_delete_old_perm_tables.py [deleted file]
settings.py.dist