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 `.