[Django] #34295: Add makemigrations flag that just uses timestamp

0 views
Skip to first unread message

Django

unread,
Jan 26, 2023, 11:18:21 AM1/26/23
to django-...@googlegroups.com
#34295: Add makemigrations flag that just uses timestamp
-------------------------------------+-------------------------------------
Reporter: Andrew | Owner: nobody
Chen Wang |
Type: New | Status: new
feature |
Component: Core | Version: 4.1
(Management commands) |
Severity: Normal | Keywords:
Triage Stage: | Has patch: 0
Unreviewed |
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 1
UI/UX: 0 |
-------------------------------------+-------------------------------------
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.

--
Ticket URL: <https://code.djangoproject.com/ticket/34295>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
Jan 27, 2023, 7:02:12 AM1/27/23
to django-...@googlegroups.com
#34295: Add makemigrations flag that just uses timestamp
-------------------------------------+-------------------------------------
Reporter: Andrew Chen Wang | Owner: nobody
Type: New feature | Status: closed
Component: Core (Management | Version: 4.1
commands) |
Severity: Normal | Resolution: wontfix
Keywords: | Triage Stage:
| Unreviewed
Has patch: 0 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 1 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Mariusz Felisiak):

* status: new => closed
* resolution: => wontfix


Comment:

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
}}}

--
Ticket URL: <https://code.djangoproject.com/ticket/34295#comment:1>

Reply all
Reply to author
Forward
0 new messages