Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds command to check for circular migration dependencies #49

Draft
wants to merge 27 commits into
base: master
Choose a base branch
from

Conversation

kingbuzzman
Copy link
Owner

@kingbuzzman kingbuzzman commented Feb 2, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant