8000 minor #18899 [Messenger] Remove an unneeded tip about Doctrine migrat… · symfony/symfony-docs@e07e38d · GitHub
[go: up one dir, main page]

Skip to content

Commit e07e38d

Browse files
committed
minor #18899 [Messenger] Remove an unneeded tip about Doctrine migrations and schema_filter (javiereguiluz)
This PR was merged into the 5.4 branch. Discussion ---------- [Messenger] Remove an unneeded tip about Doctrine migrations and schema_filter Fixes #18328. Commits ------- c0665ed [Messenger] Remove an unneeded tip about Doctrine migrations and schema_filter
2 parents c2969fb + c0665ed commit e07e38d

File tree

1 file changed

+0
-30
lines changed

1 file changed

+0
-30
lines changed

messenger.rst

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1459,36 +1459,6 @@ DSN by using the ``table_name`` option:
14591459
Or, to create the table yourself, set the ``auto_setup`` option to ``false`` and
14601460
:ref:`generate a migration <doctrine-creating-the-database-tables-schema>`.
14611461

1462-
.. tip::
1463-
1464-
To avoid tools like Doctrine Migrations from trying to remove this table because
1465-
it's not part of your normal schema, you can set the ``schema_filter`` option:
1466-
1467-
.. configuration-block::
1468-
1469-
.. code-block:: yaml
1470-
1471-
# config/packages/doctrine.yaml
1472-
doctrine:
1473-
dbal:
1474-
schema_filter: '~^(?!messenger_messages)~'
1475-
1476-
.. code-block:: xml
1477-
1478-
<!-- config/packages/doctrine.xml -->
1479-
<doctrine:dbal schema-filter="~^(?!messenger_messages)~"/>
1480-
1481-
.. code-block:: php
1482-
1483-
# config/packages/doctrine.php
1484-
$container->loadFromExtension('doctrine', [
1485-
'dbal' => [
1486-
'schema_filter' => '~^(?!messenger_messages)~',
1487-
// ...
1488-
],
1489-
// ...
1490-
]);
1491-
14921462
.. caution::
14931463

14941464
The datetime property of the messages stored in the database uses the

0 commit comments

Comments
 (0)
0