Reputation: 9572
I'm wondering whats the "best" way to use South with multiple developers.
Should the migration files be tracked? The problems rise when two developers create different changes to models.py from a same origin.
If the migration files are tracked:
If they are not tracked:
Are there more advantages/disadvantages I missed? whats the "best" way? I'm currently using tracked migrations but thinking of changing to untracked, seems its far simpler.
thanks.
Upvotes: 17
Views: 2370
Reputation: 38382
They should definitely be added to source control. You will need to manually (verbally?) co-ordinate changes your models to avoid clashes. If you don't include the migrations in your source control, then other developers won't be able to migrate their database (which defeats the point of actually having migrations).
Upvotes: 21