{"categories":[{"label":"Software Development","url":"https://skillfed.io/packages/category/software-development/4"}],"enrichment":{"capability":"Enforces linear migration history in Django projects by tracking the latest migration per app in max_migration.txt files, preventing merge conflicts and out-of-order migration execution.","skillfed_tags":["django-migrations","version-control-integration","team-development"],"use_cases":["Prevent out-of-order migration execution in teams where multiple feature branches create migrations simultaneously.","Detect migration conflicts early via version control merge conflicts rather than discovering them during deployment.","Automatically rebase a conflicted migration to depend on the new migration from the main branch using rebase_migration.","Validate migration linearity across all first-party apps with built-in system checks (dlm.E001 through dlm.E005).","Manage migration history in projects with many first-party apps by tracking max migration per app."],"what_it_does":"django-linear-migrations is a Django app that prevents migration history conflicts when multiple branches develop migrations in parallel. It works by having makemigrations and squashmigrations record the latest migration name in per-app max_migration.txt files; these files create merge conflicts in Git (or other version control) when parallel migrations are attempted, forcing developers to resolve the conflict before merging rather than discovering the problem later during deployment.\n\nThe package includes management commands to initialize max_migration.txt files, detect and report migration conflicts via system checks, and automatically rebase migrations after Git conflicts are resolved. It requires minimal setup beyond adding the app to INSTALLED_APPS and running create_max_migration_files, though projects with custom makemigrations or squashmigrations commands must ensure those commands subclass django-linear-migrations' Command class.","worth_installing":"Yes. django-linear-migrations solves a real problem in team Django development\u2014parallel migrations causing out-of-order execution\u2014with low install friction, active maintenance, no known vulnerabilities, and a permissive MIT license. Install it if your team works on multiple branches simultaneously; the setup cost is minimal and the conflict-detection benefit is substantial."},"id":"django-linear-migrations","links":{"html":"https://skillfed.io/packages/django-linear-migrations","md":"https://skillfed.io/packages/django-linear-migrations.md","pypi":"https://pypi.org/project/django-linear-migrations/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2025-09-18","license_spdx":"MIT","license_treatment":"permissive","name":"django-linear-migrations","python_support":"supports_current","summary":"Ensure your migrations are linear."},"popularity":{"monthly_downloads":3035508,"position":2778,"tier":"top_5000"},"security":{"n_vulnerabilities":0},"version":"2.19.0"}
