From 59c93e57ec0c5f57b2241189d18f45b03d1fd3fc Mon Sep 17 00:00:00 2001 From: Cedric Ziel Date: Tue, 27 Mar 2018 12:02:14 +0200 Subject: [PATCH] Document schema changes with DoctrineMigrationsBundle --- src/Resources/doc/index.rst | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/src/Resources/doc/index.rst b/src/Resources/doc/index.rst index 2ed8bc6..ab4417d 100644 --- a/src/Resources/doc/index.rst +++ b/src/Resources/doc/index.rst @@ -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 --------------- @@ -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