File tree Expand file tree Collapse file tree
user_guide_src/source/libraries Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments