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


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 Dakota Hawkins, 6 years ago

Owner: changed from nobody to Dakota Hawkins
Status: newassigned

comment:2 by Simon Charette, 6 years ago

Triage Stage: UnreviewedAccepted
Type: Cleanup/optimizationNew feature

comment:3 by Dakota Hawkins, 6 years ago

Has patch: set

comment:4 by Simon Charette, 6 years ago

Triage Stage: AcceptedReady for checkin

comment:5 by Carlton Gibson <carlton.gibson@…>, 6 years ago

Resolution: fixed
Status: assignedclosed

In 8d3147e1:

Fixed #30031 -- Added --no-header option to makemigrations/squashmigrations.

Note: See TracTickets for help on using tickets.
Back to Top