Skip to content
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

Document schema changes with DoctrineMigrationsBundle #12

Merged
merged 1 commit into from
Nov 7, 2023
Merged
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
16 changes: 15 additions & 1 deletion src/Resources/doc/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -92,10 +92,23 @@ system is supposed to use:
After the connection is configured, you have to import the database structure
running the following command:

.. code-block:: bash
.. code-block:: terminal

$ php bin/console acl:init

If you are using `DoctrineMigrationsBundle`_, the schema changes can be applied
by diffing your current schema.

.. code-block:: terminal

$ php bin/console doctrine:migration:diff

This will create a new migration you can then apply.

.. code-block:: terminal

$ php bin/console doctrine:migration:migrate

Getting Started
---------------

Expand Down Expand Up @@ -243,4 +256,5 @@ added above:
The user is now allowed to view, edit, delete, and un-delete objects.

.. _`built-in security voters`: https://symfony.com/doc/current/security/voters.html
.. _`DoctrineMigrationsBundle`: https://symfony.com/doc/master/bundles/DoctrineMigrationsBundle/index.html
.. _`MongoDBAclBundle`: https://github.com/IamPersistent/MongoDBAclBundle
Loading