Skip to content

[MakerBundle] make:migration supports --formatted option #19715

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions doctrine.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
5 changes: 5 additions & 0 deletions security.rst
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,11 @@ to create the tables by :ref:`creating and running a migration <doctrine-creatin
$ php bin/console make:migration
$ php bin/console doctrine:migrations:migrate

.. tip::

Starting in `MakerBundle`_: v1.56.0 - Passing ``--formatted`` to ``make:migration``
generates a nice and tidy migration file.

.. _where-do-users-come-from-user-providers:
.. _security-user-providers:

Expand Down