Skip to content

Commit 64375f1

Browse files
authored
docs: correct what make:migration --session reads from Config\Session (#10549)
1 parent 959cc32 commit 64375f1

1 file changed

Lines changed: 10 additions & 2 deletions

File tree

user_guide_src/source/libraries/sessions.rst

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -653,8 +653,16 @@ from the cli to generate a migration file for you:
653653
php spark make:migration --session
654654
php spark migrate
655655
656-
This command will take the ``$savePath`` and ``$matchIP`` settings into account
657-
when it generates the code.
656+
This command reads the ``$matchIP`` setting to decide the primary key. The table
657+
name and database group are not read from **app/Config/Session.php**, so pass
658+
``--table`` and ``--dbgroup`` when they differ from ``ci_sessions`` and ``default``:
659+
660+
.. code-block:: console
661+
662+
php spark make:migration --session --table my_sessions --dbgroup sessions
663+
664+
The ``--table`` value should match ``$savePath``, and the ``--dbgroup`` value
665+
should match ``$DBGroup``.
658666

659667
.. _sessions-redishandler-driver:
660668

0 commit comments

Comments
 (0)