{"categories":[{"label":"Database","url":"https://skillfed.io/packages/category/database/5"}],"enrichment":{"capability":"Provides safer, production-ready Django migration operations for PostgreSQL, including concurrent index management, constraint handling, and timeout controls to prevent long-running migrations from blocking production databases.","skillfed_tags":["django-orm","postgres-specific","schema-migration"],"use_cases":["Add indexes to large production tables without blocking reads and writes during the migration window.","Add or remove unique and check constraints safely using PostgreSQL's non-blocking constraint creation.","Set columns to NOT NULL on populated tables by validating data before applying the constraint.","Run all migrations with automatic statement and lock timeouts to prevent runaway queries from blocking the application.","Add foreign keys to existing tables with validation and optional constraint deferral."],"what_it_does":"django-pg-migration-tools is a Django package that wraps PostgreSQL-specific migration operations to make schema changes safer in production environments. It provides drop-in replacements for standard Django migration operations\u2014adding/removing constraints, indexes, and foreign keys\u2014that use PostgreSQL's non-blocking techniques (like concurrent index creation) and timeout controls to prevent migrations from locking tables and blocking application traffic.\n\nThe package includes management commands to run migrations with configurable statement and lock timeouts, and context managers to apply timeouts to arbitrary database operations. It's designed for teams running Django on PostgreSQL who need to perform schema changes on live databases without downtime or long-running locks. The codebase is actively maintained, supports modern Python versions, and carries no runtime dependencies beyond Django itself.","worth_installing":"Yes, if you run Django on PostgreSQL and perform schema migrations on live databases. The package directly addresses a real production pain point\u2014long-running migrations that lock tables\u2014and is actively maintained with no external dependencies. The alpha status reflects early releases, but the core operations are straightforward and well-documented. Install if you need safer schema changes; skip if you use a different database backend or have no production migration concerns."},"id":"django-pg-migration-tools","links":{"html":"https://skillfed.io/packages/django-pg-migration-tools","md":"https://skillfed.io/packages/django-pg-migration-tools.md","pypi":"https://pypi.org/project/django-pg-migration-tools/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2026-02-27","license_spdx":null,"license_treatment":"permissive","name":"django-pg-migration-tools","python_support":"supports_current","summary":"Tools for making Django migrations safer and more scalable."},"popularity":{"monthly_downloads":76180,"position":14650,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"0.1.26"}
