django-squash
django-squash copied to clipboard
Adds command to check for circular migration dependencies
pip install git+https://github.com/kingbuzzman/django-squash.git@add-circular-migration-finder
python manage.py shell -c 'from django.core.management import call_command; from django_squash.management.commands.circularmigrations import Command; call_command(Command())'
Advanced.
Get the apps that are problematic, and needs to be ignored.
python manage.py shell -c 'from django.core.management import call_command; from django_squash.management.commands.circularmigrations import Command; call_command(Command())' | grep '*' | awk '{for(i=1;i<=NF;i++) print $i}' | grep -v '>\|<\|*' | grep -vE "\(" | sort | uniq