1
0
mirror of https://github.com/django/django.git synced 2025-10-31 09:41:08 +00:00

Fixed #23728 -- Added the --exit option to makemigrations.

If no changes that need migrations are found, `makemigrations --exit`
exits with error code 1.
This commit is contained in:
Tim Heap
2014-11-11 15:41:55 +11:00
committed by Tim Graham
parent ab89414f40
commit deb607648e
5 changed files with 40 additions and 8 deletions

View File

@@ -333,6 +333,9 @@ Management Commands
:setting:`FIXTURE_DIRS` contains duplicates or a default fixture directory
path (``app_name/fixtures``), an exception is raised.
* :djadmin:`makemigrations` now supports an :djadminopt:`--exit` option to
exit with an error code if no migrations are created.
Middleware
^^^^^^^^^^