mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Fixed #23302 -- Added --name/-n option to makemigrations command
This commit is contained in:
committed by
Tim Graham
parent
bda2809712
commit
1435cfbe8d
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
|
||||
|
||||
Reference in New Issue
Block a user