From e083e4946a3ff425055a7b2e8b57963a58cd549b Mon Sep 17 00:00:00 2001 From: Jesse Rushlow Date: Tue, 26 Mar 2024 15:54:46 -0400 Subject: [PATCH] [MakerBundle] `make:migration` supports --formatted option Released in `v1.56.0`, passing --formatted will generate a "human friendly" migration file. --- doctrine.rst | 6 ++++++ security.rst | 5 +++++ 2 files changed, 11 insertions(+) diff --git a/doctrine.rst b/doctrine.rst index c118a7c6280..e6a178d1802 100644 --- a/doctrine.rst +++ b/doctrine.rst @@ -225,6 +225,11 @@ already installed: $ php bin/console make:migration +.. tip:: + + Starting in `MakerBundle`_: v1.56.0 - Passing ``--formatted`` to ``make:migration`` + generates a nice and tidy migration file. + If everything worked, you should see something like this: .. code-block:: text @@ -909,3 +914,4 @@ Learn more .. _`PDO`: https://www.php.net/pdo .. _`available Doctrine extensions`: https://github.com/doctrine-extensions/DoctrineExtensions .. _`StofDoctrineExtensionsBundle`: https://github.com/stof/StofDoctrineExtensionsBundle +.. _`MakerBundle`: https://symfony.com/doc/current/bundles/SymfonyMakerBundle/index.html diff --git a/security.rst b/security.rst index 6f07153cc3c..7c7da679d45 100644 --- a/security.rst +++ b/security.rst @@ -245,6 +245,11 @@ to create the tables by :ref:`creating and running a migration