I recently began digging into the South documentation and discovered that it had two distinct types of migrations:
- schemamigration
- datamigration
As a result of my ignorance, I've always used schemamigrations for everything. In other words, even if I had something that was truly a "data migration", I'd simply used South's schemamigration to convert the data (with no apparent consequences).
As I read the documentation, I'm not seeing a fault in this approach. Does anyone know the fundamental difference between the two migrations and what I may be missing by sticking with schemamigrations?
There's really only one kind of migration, but two commands.
datamigration
creates a new blank migration for you to fill out, whileschemamigration
is an optional convenience command which will attempt to detect schema changes and create a migration automatically.Edit: from http://south.aeracode.org/docs/commands.html#schemamigration
Per the lead developer of South: