Search code examples
pythondjangoherokudjango-south

Using South migrations with Heroku


I have successfully synced my database using south on the local server. I am having problems using south in Heroku. When I run

git add app/migrations/*

git commit -m 'adding new migrations'

heroku run python manage.py migrate app

I am getting a DatabaseError. Relation field already exists.

Any ideas why this isn't working? Also, do I need to run migrations locally and on the production environment each time one of my models change? Thanks for reading.


Solution

  • it seems you already have the fields in your database for that app. try faking the migrations by running

    heroku run python manage.py migrate app --fake