Django Detect Migration Conflict |
Management command to detect migration conflicts and raise an error if found
Install Django Detect Migration Conflict:
pip install dj-migration-conflicts
Add it to your `INSTALLED_APPS`:
INSTALLED_APPS = (
...
'dj_migration_conflicts.apps.DjMigrationConflictsConfig',
...
)
- Migration command to check for migration conflicts. To run it run: python manage.py detect_migration_conflicts
Does the code actually work?
source <YOURVIRTUALENV>/bin/activate
(myenv) $ pip install tox
(myenv) $ tox
Tools used in rendering this package:
Attribution: library is based on this gist: https://gist.github.com/cb109/9f434e83c86e122715b78766e1dde2da