Skip to content

Commit 164ea9c

Browse files
committed
minor #19715 [MakerBundle] make:migration supports --formatted option (jrushlow)
This PR was merged into the 5.4 branch. Discussion ---------- [MakerBundle] `make:migration` supports --formatted option Released in `v1.56.0`, passing `--formatted` will generate a "human friendly" migration file. https://github.com/symfony/maker-bundle/releases/tag/v1.56.0 Commits ------- e083e49 [MakerBundle] `make:migration` supports --formatted option
2 parents 216d20a + e083e49 commit 164ea9c

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

doctrine.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,11 @@ already installed:
225225
226226
$ php bin/console make:migration
227227
228+
.. tip::
229+
230+
Starting in `MakerBundle`_: v1.56.0 - Passing ``--formatted`` to ``make:migration``
231+
generates a nice and tidy migration file.
232+
228233
If everything worked, you should see something like this:
229234

230235
.. code-block:: text
@@ -909,3 +914,4 @@ Learn more
909914
.. _`PDO`: https://www.php.net/pdo
910915
.. _`available Doctrine extensions`: https://github.com/doctrine-extensions/DoctrineExtensions
911916
.. _`StofDoctrineExtensionsBundle`: https://github.com/stof/StofDoctrineExtensionsBundle
917+
.. _`MakerBundle`: https://symfony.com/doc/current/bundles/SymfonyMakerBundle/index.html

security.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -245,6 +245,11 @@ to create the tables by :ref:`creating and running a migration <doctrine-creatin
245245
$ php bin/console make:migration
246246
$ php bin/console doctrine:migrations:migrate
247247
248+
.. tip::
249+
250+
Starting in `MakerBundle`_: v1.56.0 - Passing ``--formatted`` to ``make:migration``
251+
generates a nice and tidy migration file.
252+
248253
.. _where-do-users-come-from-user-providers:
249254
.. _security-user-providers:
250255

0 commit comments

Comments
 (0)