id summary reporter owner description type status component version severity resolution keywords cc stage has_patch needs_docs needs_tests needs_better_patch easy ui_ux 23953 "makemigrations generates ""wrong"" numbered migration file if squashed migrations are in place" Markus Holtermann Jacob Walls "When an app has migrations `0001_initial` and `0002_auto_20141202_1234` that are squashed to `0001_squashed_0002_auto_20141202_1234`, a new call to `makemigrations` will generate a migration file called `0002_auto_20141202_2345` instead of `0003_auto_20141202_2345` which is quite irritating as long as `0002_auto_20141202_1234` is still around. It does make sense though when only `0001_squashed_0002_auto_20141202_1234` is left. Although the latter case eventually hits every project, I'd prefer the former." Cleanup/optimization closed Migrations 1.7 Normal fixed Markus Holtermann Ready for checkin 1 0 0 0 1 0