django-squash icon indicating copy to clipboard operation
django-squash copied to clipboard

Adds command to check for circular migration dependencies

Open kingbuzzman opened this issue 1 year ago • 0 comments

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

kingbuzzman avatar Feb 02 '24 13:02 kingbuzzman