|
|
|
|
|
by nickserv
2603 days ago
|
|
Django migrations can be problematic because they're meant to be sequential and have interdependencies. I've had problems merging multiple feature branches because of this, even though there are no code conflicts. A system like Saltstack or Puppet for databases would not have checked in migrations, these would be generated on the fly at deploy time. So you could very well have multiple state changes in a single run, by comparing actual DB state and desired DB state, then creating the SQL code as needed for that deployment. Honestly not having to fiddle with the migrations table on a live server seems pretty nice ;-) This could very well turn out to be Django's next gen migration tool... |
|
They're actually a directed graph; this means a conflict wasn't handled on the branches that should have been, and would probably have been a problem regardless.