Using Southern Migration with Heroku

I have successfully synchronized my database using south on the local server. I have problems with the south in Hereka. When i started

git add app/migrations/*

git commit -m 'adding new migrations'

heroku run python manage.py migrate app

I get a DatabaseError. A relationship field already exists.

Any ideas why this is not working? Also, do I need to migrate locally and in the production environment every time one of my models changes? Thanks for reading.

+3
source share
2 answers

It seems you already have fields in your database for this application. try faking migrations by running

heroku run python manage.py migrate app --fake
+6
source

do it on Heroku:

heroku run python manage.py migrate YOUR_APP_NAME 0001 --fake

then

heroku python manage.py YOUR_APP

. , - . , , (0002) .

+1

All Articles