mirror of
https://github.com/django/django.git
synced 2025-08-04 19:08:28 +00:00
Fixed #23302 -- Added --name/-n option to makemigrations command
This commit is contained in:
parent
bda2809712
commit
1435cfbe8d
7 changed files with 87 additions and 6 deletions
7
docs/topics/migrations.txt
Executable file → Normal file
7
docs/topics/migrations.txt
Executable file → Normal file
|
@ -309,6 +309,13 @@ Note that this only works given two things:
|
|||
that your database doesn't match your models, you'll just get errors when
|
||||
migrations try to modify those tables.
|
||||
|
||||
.. versionadded:: 1.8
|
||||
|
||||
If you want to give the migration(s) a meaningful name instead of a generated one,
|
||||
you can use the :djadminopt:`--name` option::
|
||||
|
||||
$ python manage.py makemigrations --name changed_my_model your_app_label
|
||||
|
||||
.. _historical-models:
|
||||
|
||||
Historical models
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue