Skip to content

Commit 20f38c1

Browse files
committed
[Lock] update doc creation lock table
1 parent 23e2a8b commit 20f38c1

File tree

1 file changed

+13
-4
lines changed

1 file changed

+13
-4
lines changed

components/lock.rst

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -553,12 +553,21 @@ does not support blocking, and expects a TTL to avoid stalled locks::
553553

554554
This store does not support TTL lower than 1 second.
555555

556-
The table where values are stored is created automatically on the first call to
557-
the :method:`Symfony\\Component\\Lock\\Store\\DoctrineDbalStore::save` method.
556+
The table where values are stored will be automatically generated when your run the command :
557+
558+
.. code-block:: terminal
559+
560+
$ php bin/console make:migration
561+
562+
If you prefer to create the table yourself and it has not already been created, you can
563+
create this table explicitly by calling the
564+
:method:`Symfony\\Component\\Lock\\Store\\DoctrineDbalStore::createTable` method.
558565
You can also add this table to your schema by calling
559566
:method:`Symfony\\Component\\Lock\\Store\\DoctrineDbalStore::configureSchema` method
560-
in your code or create this table explicitly by calling the
561-
:method:`Symfony\\Component\\Lock\\Store\\DoctrineDbalStore::createTable` method.
567+
in your code
568+
569+
If the table has not been created upstream, it will be created automatically on the first call to
570+
the :method:`Symfony\\Component\\Lock\\Store\\DoctrineDbalStore::save` method.
562571

563572
.. _lock-store-pgsql:
564573

0 commit comments

Comments
 (0)