diff --git a/django_celery_results/migrations/0010_remove_duplicate_indices.py b/django_celery_results/migrations/0010_remove_duplicate_indices.py index 4b50d61..0e78641 100644 --- a/django_celery_results/migrations/0010_remove_duplicate_indices.py +++ b/django_celery_results/migrations/0010_remove_duplicate_indices.py @@ -21,6 +21,10 @@ def database_forwards(self, *args, **kwargs): super().database_forwards(*args, **kwargs) except DatabaseError: pass + except Exception: + # Not all DB engines throw DatabaseError when the + # index does not exist. + pass def database_backwards(self, *args, **kwargs): """Don't re-add the index when reverting this migration"""