{"categories":[{"label":"Python Modules","url":"https://skillfed.io/packages/category/software-development-libraries-python-modules/19"}],"enrichment":{"capability":"Automates Django database migration deployment by splitting operations into pre-deployment and post-deployment stages, preventing schema conflicts when old and new code versions coexist during rollout.","skillfed_tags":["django-migrations","zero-downtime-deployment","ci-cd"],"use_cases":["Running migrations before deploying new code in a continuous deployment pipeline to prevent schema conflicts","Safely adding fields to models without breaking existing application instances still using the old schema","Removing fields in stages so both old and new code versions can operate during a gradual rollout","Enforcing safe migration sequencing through system checks that prevent mixing pre- and post-deploy operations in a single migration"],"what_it_does":"django-syzygy is a Django application that restructures how migrations are sequenced during deployment. It addresses a core problem in continuous deployment: when you roll out code changes, old and new code versions must coexist briefly, but Django's default migrations don't account for this. For example, adding a field with a default value removes the database-level default immediately, breaking inserts from the old code that doesn't know the field exists yet.\n\nThe package introduces the concept of prerequisite (pre-deploy) and postponed (post-deploy) migrations. It automatically splits problematic operations\u2014like field additions and removals\u2014into multiple stages, and provides a `--pre-deploy` flag to the migrate command so your CI/CD pipeline can run migrations before code rollout, then apply deferred changes after. It's tested on PostgreSQL, SQLite, and MySQL, though MySQL's lack of transactional DDL means failed migrations may require manual intervention.","worth_installing":"Yes, if you use Django in a continuous deployment environment where old and new code versions coexist during rollouts. The package solves a real problem that standard Django migrations don't handle well. Install friction is low and maintenance is active. Not necessary for single-instance deployments or applications that tolerate brief downtime during migrations. MySQL users should be aware that transactional DDL is not supported, requiring manual intervention on failed migrations."},"id":"django-syzygy","links":{"html":"https://skillfed.io/packages/django-syzygy","md":"https://skillfed.io/packages/django-syzygy.md","pypi":"https://pypi.org/project/django-syzygy/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2026-03-13","license_spdx":null,"license_treatment":"permissive","name":"django-syzygy","python_support":"unspecified","summary":"Deployment aware tooling for Django migrations."},"popularity":{"monthly_downloads":108702,"position":12543,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"1.2.3"}
