django.db.utils.ProgrammingError: relation already exists
This works pretty fine
./manage.py migrate --fake default
https://docs.djangoproject.com/en/2.2/ref/django-admin/#cmdoption-migrate-fake
Do python manage.py migrate --fake
initally.
https://docs.djangoproject.com/en/3.2/ref/django-admin/#django-admin-migrate
I've faced similar issue when added couple new fields to existing model. I'm using Django 1.9, which introduced --run-syncdb
option. Running manage.py migrate --run-syncdb
fixed my tables.