From f24201eb59a6c4994207f5d79a679f2b27a45d06 Mon Sep 17 00:00:00 2001 From: R1n0x Date: Fri, 11 Aug 2023 23:45:36 +0200 Subject: [PATCH] Update messenger.rst Added explanation on how to set default messenger table name --- messenger.rst | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/messenger.rst b/messenger.rst index 6835e8dff11..625e15f22b0 100644 --- a/messenger.rst +++ b/messenger.rst @@ -1445,6 +1445,14 @@ a table named ``messenger_messages``. The ability to automatically generate a migration for the ``messenger_messages`` table was introduced in Symfony 5.1 and DoctrineBundle 2.1. +If you would like to change the name of the default table you can pass it in the DSN +settings by using the ``table_name`` option. + +.. code-block:: env + + # .env + MESSENGER_TRANSPORT_DSN=doctrine://default?table_name=your_table_name + Or, to create the table yourself, set the ``auto_setup`` option to ``false`` and :ref:`generate a migration `.