Skip to content

Commit ecd9296

Browse files
committed
minor #17913 [Lock] update doc creation lock table (alli83)
This PR was merged into the 6.3 branch. Discussion ---------- [Lock] update doc creation lock table linked to issue #17778 and PR symfony/symfony#48999 Update the methods to create the lock table. Commits ------- 20f38c1 [Lock] update doc creation lock table
2 parents d130743 + 20f38c1 commit ecd9296

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
@@ -550,12 +550,21 @@ does not support blocking, and expects a TTL to avoid stalled locks::
550550

551551
This store does not support TTL lower than 1 second.
552552

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

560569
.. _lock-store-pgsql:
561570

0 commit comments

Comments
 (0)