Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitdc64ec7

Browse files
committed
minor#13651 The Doctrine Messenger table can now be generated with a migration diff (weaverryan)
This PR was merged into the master branch.Discussion----------The Doctrine Messenger table can now be generated with a migration diffFixes#13634The DoctrineBundle PR has also been merged and is waiting for a 2.1 release (but we'll make sure to get a release before Symfony 5.1).Cheers!Commits-------2367b9f The Doctrine Messenger table can now be generated with a migration diff
2 parents992f2d1 +2367b9f commitdc64ec7

File tree

1 file changed

+6
-12
lines changed

1 file changed

+6
-12
lines changed

‎messenger.rst‎

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -905,21 +905,15 @@ The Doctrine transport can be used to store messages in a database table.
905905
906906
The format is ``doctrine://<connection_name>``, in case you have multiple connections
907907
and want to use one other than the "default". The transport will automatically create
908-
a table named ``messenger_messages`` (this is configurable) when the transport is
909-
first used. You can disable that with the ``auto_setup`` option and set the table
910-
up manually by calling the ``messenger:setup-transports`` command.
908+
a table named ``messenger_messages``.
911909

912-
..tip::
913-
914-
To avoid tools like Doctrine Migrations from trying to remove this table because
915-
it's not part of your normal schema, you can set the ``schema_filter`` option:
910+
..versionadded::5.1
916911

917-
..code-block::yaml
912+
The ability to automatically generate a migration for the ``messenger_messages``
913+
table was introduced in Symfony 5.1 and DoctrineBundle 2.1.
918914

919-
# config/packages/doctrine.yaml
920-
doctrine:
921-
dbal:
922-
schema_filter:'~^(?!messenger_messages)~'
915+
Or, to create the table yourself, set the ``auto_setup`` option to ``false`` and
916+
:ref:`generate a migration<doctrine-creating-the-database-tables-schema>`.
923917

924918
The transport has a number of options:
925919

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp