8000 minor #12 Document schema changes with DoctrineMigrationsBundle (cedr… · symfony/acl-bundle@e626dbc · GitHub
[go: up one dir, main page]

Skip to content

Commit e626dbc

Browse files
committed
minor #12 Document schema changes with DoctrineMigrationsBundle (cedricziel)
This PR was squashed before being merged into the main branch. Discussion ---------- Document schema changes with DoctrineMigrationsBundle With DoctrineMigrationsBundle, the schema changes will be loaded transparently through a schema listener so that users can apply the schema changes for AclBundle by simply diffing the schema. Commits ------- 59c93e5 Document schema changes with DoctrineMigrationsBundle
2 parents a1068ab + 59c93e5 commit e626dbc

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

src/Resources/doc/index.rst

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,10 +92,23 @@ system is supposed to use:
9292
After the connection is configured, you have to import the database structure
9393
running the following command:
9494

95-
.. code-block:: bash
95+
.. code-block:: terminal
9696
9797
$ php bin/console acl:init
9898
99+
If you are using `DoctrineMigrationsBundle`_, the schema changes can be applied
100+
by diffing your current schema.
101+
102+
.. code-block:: terminal
103+
104+
$ php bin/console doctrine:migration:diff
105+
106+
This will create a new migration you can then apply.
107+
108+
.. code-block:: terminal
109+
110+
$ php bin/console doctrine:migration:migrate
111+
99112
Getting Started
100113
---------------
101114

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

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

0 commit comments

Comments
 (0)
0