From deb607648ed7d484a90474b6da48642b4f39bca7 Mon Sep 17 00:00:00 2001 From: Tim Heap Date: Tue, 11 Nov 2014 15:41:55 +1100 Subject: Fixed #23728 -- Added the --exit option to makemigrations. If no changes that need migrations are found, `makemigrations --exit` exits with error code 1. --- docs/ref/django-admin.txt | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'docs/ref') diff --git a/docs/ref/django-admin.txt b/docs/ref/django-admin.txt index 07f7093634..85864d78b8 100644 --- a/docs/ref/django-admin.txt +++ b/docs/ref/django-admin.txt @@ -719,6 +719,14 @@ a merge. The ``--name`` option allows you to give the migration(s) a custom name instead of a generated one. +.. django-admin-option:: --exit, -e + +.. versionadded:: 1.8 + +The ``--exit`` option will cause ``makemigrations`` to exit with error code 1 +when no migration are created (or would have been created, if combined with +``--dry-run``). + migrate [ []] --------------------------------------- -- cgit v1.3