Opened 4 years ago

Closed 4 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 Changed 4 years ago by Dakota Hawkins

Owner: changed from nobody to Dakota Hawkins
Status: newassigned

comment:2 Changed 4 years ago by Simon Charette

Triage Stage: UnreviewedAccepted
Type: Cleanup/optimizationNew feature

comment:3 Changed 4 years ago by Dakota Hawkins

Has patch: set

comment:4 Changed 4 years ago by Simon Charette

Triage Stage: AcceptedReady for checkin

comment:5 Changed 4 years ago by Carlton Gibson <carlton.gibson@…>

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