Skip to content

Commit 2745775

Browse files
committed
minor #18743 [Messenger] [Messenger ] Add explanation on how to set default messenger table name (r1n0x)
This PR was submitted for the 6.3 branch but it was merged into the 5.4 branch instead. Discussion ---------- [Messenger] [Messenger ] Add explanation on how to set default messenger table name Added explanation on how to set default messenger table name <!-- If your pull request fixes a BUG, use the oldest maintained branch that contains the bug (see https://symfony.com/releases for the list of maintained branches). If your pull request documents a NEW FEATURE, use the same Symfony branch where the feature was introduced (and `6.x` for features of unreleased versions). --> Commits ------- f24201e Update messenger.rst
2 parents c9ecc7c + f24201e commit 2745775

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

messenger.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1445,6 +1445,14 @@ a table named ``messenger_messages``.
14451445
The ability to automatically generate a migration for the ``messenger_messages``
14461446
table was introduced in Symfony 5.1 and DoctrineBundle 2.1.
14471447

1448+
If you would like to change the name of the default table you can pass it in the DSN
1449+
settings by using the ``table_name`` option.
1450+
1451+
.. code-block:: env
1452+
1453+
# .env
1454+
MESSENGER_TRANSPORT_DSN=doctrine://default?table_name=your_table_name
1455+
14481456
Or, to create the table yourself, set the ``auto_setup`` option to ``false`` and
14491457
:ref:`generate a migration <doctrine-creating-the-database-tables-schema>`.
14501458

0 commit comments

Comments
 (0)