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

Created row Type isn't deleted if whole model is deleted #1

Open
fjsj opened this issue Feb 4, 2019 · 0 comments
Open

Created row Type isn't deleted if whole model is deleted #1

fjsj opened this issue Feb 4, 2019 · 0 comments
Labels
wontfix This will not be worked on

Comments

@fjsj
Copy link
Member

fjsj commented Feb 4, 2019

Steps to reproduce:

  1. Remove whole model from models.py
  2. makemigrations
  3. migrate
  4. migrate back to migration number before deletion
  5. Error here:
    django.db.utils.ProgrammingError: type "restaurants_name_016c1c_zombodb_row_type" already exists

For now, solution is to make a custom database backend engine, like https://github.com/SectorLabs/django-postgres-extra. Then, in the custom backend, implement something like SpatialiteSchemaEditor.delete_model.

We won't fix this now since we want an easier to configure API and this is a low impact issue.

@fjsj fjsj added the wontfix This will not be worked on label Feb 4, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

1 participant