Skip to content

Commit

Permalink
Add docs about schema filter for Doctrine Migrations
Browse files Browse the repository at this point in the history
  • Loading branch information
emodric committed Sep 8, 2022
1 parent 06edbff commit 74a2834
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions getting_started/install_existing_project.rst
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,19 @@ Execute the following from your installation root to import Netgen Layouts datab
# If you use Doctrine Migrations 2
$ php bin/console doctrine:migrations:migrate --configuration=vendor/netgen/layouts-core/migrations/doctrine2.yaml
.. note::

If you are using Doctrine Migrations for other parts of your app and generate a new migration with
`doctrine:migrations:diff` console command, the generated migration will now include SQL commands that drop
Netgen Layouts tables. To prevent this from happening, you can add the following config to your Doctrine
configuration (if you already have ``schema_filter`` config, update it accordingly):

.. code-block:: php
doctrine:
dbal:
schema_filter: ~^(?!nglayouts_)~
Configuration
-------------

Expand Down

0 comments on commit 74a2834

Please sign in to comment.