Opened 2 years ago

Closed 2 years ago

#34295 closed New feature (wontfix)

Add makemigrations flag that just uses timestamp

Reported by: Andrew Chen Wang Owned by: nobody
Component: Core (Management commands) Version: 4.1
Severity: Normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: yes UI/UX: no

Description

Currently, when running makemigrations, a verbose name is used instead of an auto_timestamp name when the verbose name is 47 characters or less in length. I would like to add an option to force the autogeneration of the name to use the timestamp or the verbose name, regardless of the rule.

Change History (1)

comment:1 by Mariusz Felisiak, 2 years ago

Resolution: wontfix
Status: newclosed

Thanks for the ticket, however, I don't think we need another option for the makemigrations command. This seems quite niche and currently achievable without a new option e.g.

$ python manage.py makemigrations my_app --name="auto_`date +%Y%m%d_%H%M`"
Migrations for 'my_app':
  test_one/migrations/0005_auto_20230127_1255.py
Note: See TracTickets for help on using tickets.
Back to Top