django-tenant-schemas icon indicating copy to clipboard operation
django-tenant-schemas copied to clipboard

db.utils.ProgrammingError when integrating pybbm

Open harikvpy opened this issue 8 years ago • 2 comments

I have discovered an unusual problem -- when pybbm is integrated with a project using tenant-schemas, pybbm:0004 migration fails with the error

relation "pybb_category_slug_7344317c_like" already exists

I figured out that this is because the specified index already exists (created as part of previous migration step) and therefore the cursor error is being propagated.

The strange thing is when pybbm migration is run on a vanilla Django project, the index still exists when migration:0004 is run (it seems to be created at migration:0003), but this error does not cause the migrations to fail.

I searched through the entire issue list and couldn't find anything similar. Hope someone can look into it.

harikvpy avatar Aug 04 '17 08:08 harikvpy

I'm using Django 1.11, btw.

harikvpy avatar Aug 04 '17 14:08 harikvpy

See #519

g-as avatar Dec 06 '17 17:12 g-as