Re: Troubleshooting Constraint Already Exists

2018-02-09 Thread jasonbnance
I was able to work around the issue by dumping out the SQL for the migration that was failing (manage.py sqlmigrate ...) and running through the steps manually (skipping the "already exists" constraints) and finally marking the migration as completed (with a --fake). j On Friday, February 9,

Troubleshooting Constraint Already Exists

2018-02-09 Thread jasonbnance
Hello all, I'm using 1.11 and have a migration that is throwing: django.db.utils.ProgrammingError: constraint "inventory_ltmvirtualserver_ltm_id_47dc1635_fk" for relation "inventory_ltmvirtualserver" already exists I'm having troubles figuring this out for a couple reasons. First, the migrat