jazzband / django-recurrence

Utility for working with recurring dates in Django.
https://django-recurrence.readthedocs.org/
BSD 3-Clause "New" or "Revised" License
486 stars 190 forks source link

Migration bug "Nonexistent parent node" #235

Open Josiah-J opened 2 years ago

Josiah-J commented 2 years ago

I installed django-recurrence v1.10.3 for an app I'm developing with Python 3.7.3. All is fine when I run the application locally on my dev machine, however when I deploy the application and run migrations I get the following error:

django.db.migrations.exceptions.NodeNotFoundError: Migration sg_excitation_mgmt.0001_initial dependencies reference nonexistent parent node ('recurrence', '0002_auto_20220930_1640')

I know why this is happening. It is happening because the migration on my app references a migration on the django-recurrence package which is nonexistent. But shouldn't all migrations already exist when I install django-recurrence with pip?

How do I fix this? Thanks