From e286ce17ff8bf72a248ce3177bbd5163c50a6ded Mon Sep 17 00:00:00 2001 From: David Wobrock Date: Tue, 14 Jun 2022 20:12:20 +0200 Subject: Fixed #24870 -- Added --update option to makemigrations command. --- docs/ref/django-admin.txt | 7 +++++++ docs/releases/4.2.txt | 3 +++ 2 files changed, 10 insertions(+) (limited to 'docs') diff --git a/docs/ref/django-admin.txt b/docs/ref/django-admin.txt index 25a1107c55..5016b25ea2 100644 --- a/docs/ref/django-admin.txt +++ b/docs/ref/django-admin.txt @@ -832,6 +832,13 @@ migrations are detected. Diverts log output and input prompts to ``stderr``, writing only paths of generated migration files to ``stdout``. +.. django-admin-option:: --update + +.. versionadded:: 4.2 + +Merges model changes into the latest migration and optimize the resulting +operations. + ``migrate`` ----------- diff --git a/docs/releases/4.2.txt b/docs/releases/4.2.txt index 345f4d4ad8..d43d391408 100644 --- a/docs/releases/4.2.txt +++ b/docs/releases/4.2.txt @@ -158,6 +158,9 @@ Management Commands * :djadmin:`makemessages` command now supports locales with private sub-tags such as ``nl_NL-x-informal``. +* The new :option:`makemigrations --update` option merges model changes into + the latest migration and optimizes the resulting operations. + Migrations ~~~~~~~~~~ -- cgit v1.3