From c9343317fd4090cbab0d9d2227bcb6b95ccca9e3 Mon Sep 17 00:00:00 2001 From: "John Paul E. Balandan, CPA" Date: Sat, 12 Sep 2026 22:25:16 +0800 Subject: [PATCH] docs: correct what `make:migration --session` reads from `Config\Session` --- user_guide_src/source/libraries/sessions.rst | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/user_guide_src/source/libraries/sessions.rst b/user_guide_src/source/libraries/sessions.rst index 45b3c56e112c..7aba78d269d3 100644 --- a/user_guide_src/source/libraries/sessions.rst +++ b/user_guide_src/source/libraries/sessions.rst @@ -653,8 +653,16 @@ from the cli to generate a migration file for you: php spark make:migration --session php spark migrate -This command will take the ``$savePath`` and ``$matchIP`` settings into account -when it generates the code. +This command reads the ``$matchIP`` setting to decide the primary key. The table +name and database group are not read from **app/Config/Session.php**, so pass +``--table`` and ``--dbgroup`` when they differ from ``ci_sessions`` and ``default``: + +.. code-block:: console + + php spark make:migration --session --table my_sessions --dbgroup sessions + +The ``--table`` value should match ``$savePath``, and the ``--dbgroup`` value +should match ``$DBGroup``. .. _sessions-redishandler-driver: