40%

Complete your profile to find better job opportunities

SmartMigrate
GitHubRepository

SmartMigrate

smart_migrate is a custom Django management command that makes schema migrations more resilient in branching/merging workflows where migration files are reordered or renamed.

  • 1 stars
  • 0 forks
  • Python language
View on GitHub
Published
1 May 2026
AI summary

A Django management command that enhances schema migrations by using a hybrid key for migration detection, ensuring resilience in branching/merging workflows. It computes keys from app label, cleaned migration name, and content hash, allowing detection of already-applied migrations and rollback of failed migrations.

From the README

SmartMigrate: Django Smart Migration Command with Rollback smartmigrate is a custom Django management command that makes schema migrations more resilient in branching/merging workflows where migration files are reordered or renamed. Instead of relying only on migration file names (for example, 0005x.py), it computes a hybrid migration key from: • app label • cleaned migration name (without numeric prefix) • content hash (with dependencies block excluded) This lets the command detect already-applied migrations even when numbering changes, apply only genuinely new migrations, and roll back work done in the current run if something fails. --- Why This Project Exists Django’s default...

Skills

  • Python

More work by Shyam Kumar Reddy K