-
Notifications
You must be signed in to change notification settings - Fork 208
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
makemigrations in project tries to drop and re-create indexes #222
Comments
I had similar issue after upgrading to
Fixes the issue for me :) |
i think trying from aster wont do this |
Using Oracle backend, the suggestion by @stiko is not effective. I tried like this:
Result is the same: |
v2.2.0...master can you check the commit log |
If you refer this commit 7c7cb67, then executing the same command as the test:
Migrations for 'django_celery_results': |
Verified - this is related to Oracle driver. |
This issue still occurs on django-celery-results I will try to figure out whether there are any work-arounds that could be implemented. Update: Opened pull request #283 |
Fixes celery#222. Django's auto-generated index names are not stable across database engines: https://code.djangoproject.com/ticket/33483 Added explicit index names to `models.py` to work around that, until a fix is implemented in Django itself.
thanks for the PR, I left reveiw comment |
Fixes #222. Django's auto-generated index names are not stable across database engines: https://code.djangoproject.com/ticket/33483 Added explicit index names to `models.py` to work around that, until a fix is implemented in Django itself.
With dango-celery-results 2.1.0 or 2.2.0, if I run
makemigrations
in my project, Django now thinks there are unmigrated changes in django_celery_results. And it actually creates a new migration file under thesite-packages
directory. :(However, if I run
makemigrations
in django-celery-results project, no migration changes are detected. I'm not yet sure how my project differs. Both are using Python 3.9 and Django 3.2.5. I will update if I figure it out.(I split this issue out from #208 (comment))
The output differs slightly with versions.
Result with 2.2.0:
Result with 2.1.0:
The text was updated successfully, but these errors were encountered: