celery / django-celery-beat

Celery Periodic Tasks backed by the Django ORM
Other
1.62k stars 419 forks source link

Django check fails on migrate #767

Open WannaFight opened 4 days ago

WannaFight commented 4 days ago

Summary:

Can't install django-celery-beat due to duplicate migrations

Exact steps to reproduce the issue:

  1. Project with Django 2.2 and installed Celery 5.2
  2. pip install django-celery-beat==2.2.1
  3. add django_celery_beat to INSTALLED_APPS
  4. manage.py migrate

And as I see these duplicate migrations are still presented in future version of library

Detailed information

./manage.py check
SystemCheckError: System check identified some issues:

ERRORS:
?: Duplicated names of migrations `django_celery_beat.0006`
        HINT: Remove migration created by you and run `manage.py makemigrations` again

System check identified 1 issue (0 silenced).
cclauss commented 4 days ago

HINT: Remove migration created by you and run manage.py makemigrations again

Django v2 is no longer supported.

WannaFight commented 4 days ago

ah, ok, I see it. Will try to do the same on newer Django later (plan to do it next week)