Opened 6 years ago
Closed 6 years ago
#30031 closed New feature (fixed)
Add makemigrations/squashmigrations options to suppress version/date in migration header comment
Reported by: | Dakota Hawkins | Owned by: | Dakota Hawkins |
---|---|---|---|
Component: | Core (Management commands) | Version: | dev |
Severity: | Normal | Keywords: | migrations, makemigrations |
Cc: | Simon Charette | Triage Stage: | Ready for checkin |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
From discussion around the PR for #32009
A new makemigrations
/squashmigrations
option --no-header
should prevent the Django version and date from being written to migration file header comments.
This will prevent unnecessary VCS churn in cases where that information isn't required and will help to make migration files more deterministic.
Change History (5)
comment:1 by , 6 years ago
Owner: | changed from | to
---|---|
Status: | new → assigned |
comment:2 by , 6 years ago
Triage Stage: | Unreviewed → Accepted |
---|---|
Type: | Cleanup/optimization → New feature |
comment:3 by , 6 years ago
Has patch: | set |
---|
comment:4 by , 6 years ago
Triage Stage: | Accepted → Ready for checkin |
---|
Note:
See TracTickets
for help on using tickets.
PR