Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ProgrammingError: relation "django_twilio_credential" does not exist #77

Closed
synic opened this issue Dec 3, 2014 · 2 comments
Closed

Comments

@synic
Copy link

synic commented Dec 3, 2014

Using django 1.7.1, and django_twilio 0.8.0, when trying to delete a user account, we get the message you see in the subject. django_twilio is in our INSTALLED_APPS.

$ django-admin migrate django_twilio
...
django.db.utils.ProgrammingError: relation "django_twilio_caller" already exist

It appears as though the Credential was added later, but a proper migration wasn't added to bring it up to speed (I could be wrong about that) :)

@hwkns
Copy link
Contributor

hwkns commented Feb 26, 2015

Finally tracked this one down. Way back in 5369378, instead of doing the proper thing and creating a second migration, the initial migration was updated. The old version didn't contain the Credential model, so if you had already run the initial migration before this change, you never created the django_twilio_credential table in your database.

Here's what you can do to fix it:

  • create an empty table in your database named django_twilio_credential (so that the next step doesn't fail)
  • manage.py migrate django_twilio zero
  • manage.py migrate django_twilio

@jheld
Copy link
Collaborator

jheld commented Jan 28, 2018

Looks like we're way past the date here. I'll consider adding this to the docs retroactively, but given how long ago this was, I'm more inclined to just let this die.

If you have strong opinions, please re-open and we can discuss.

@jheld jheld closed this as completed Jan 28, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants