mirror of
https://github.com/django/django.git
synced 2025-08-03 18:38:50 +00:00
Fixed #29026 -- Added --scriptable option to makemigrations.
This commit is contained in:
parent
274771df91
commit
6f78cb6b13
4 changed files with 74 additions and 3 deletions
|
@ -825,6 +825,13 @@ Generate migration files without Django version and timestamp header.
|
|||
Makes ``makemigrations`` exit with a non-zero status when model changes without
|
||||
migrations are detected.
|
||||
|
||||
.. django-admin-option:: --scriptable
|
||||
|
||||
.. versionadded:: 4.1
|
||||
|
||||
Diverts log output and input prompts to ``stderr``, writing only paths of
|
||||
generated migration files to ``stdout``.
|
||||
|
||||
``migrate``
|
||||
-----------
|
||||
|
||||
|
|
|
@ -210,6 +210,10 @@ Management Commands
|
|||
* :option:`makemigrations --no-input` now logs default answers and reasons why
|
||||
migrations cannot be created.
|
||||
|
||||
* The new :option:`makemigrations --scriptable` options diverts log output and
|
||||
input prompts to ``stderr``, writing only paths of generated migration files
|
||||
to ``stdout``.
|
||||
|
||||
Migrations
|
||||
~~~~~~~~~~
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue