Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions user_guide_src/source/dbmgmt/migration.rst
Original file line number Diff line number Diff line change
Expand Up @@ -162,8 +162,13 @@ You can use (refresh) with the following options:
Displays a list of all migrations and the date and time they ran, or '--' if they have not been run::

> php spark migrate:status
Filename Migrated On
First_migration.php 2016-04-25 04:44:22
+----------------------+-------------------+-----------------------+---------+---------------------+-------+
| Namespace | Version | Filename | Group | Migrated On | Batch |
+----------------------+-------------------+-----------------------+---------+---------------------+-------+
| App | 2022-04-06-234508 | CreateCiSessionsTable | default | 2022-04-06 18:45:14 | 2 |
| CodeIgniter\Settings | 2021-07-04-041948 | CreateSettingsTable | default | 2022-04-06 01:23:08 | 1 |
| CodeIgniter\Settings | 2021-11-14-143905 | AddContextColumn | default | 2022-04-06 01:23:08 | 1 |
+----------------------+-------------------+-----------------------+---------+---------------------+-------+

You can use (status) with the following options:

Expand Down
4 changes: 2 additions & 2 deletions user_guide_src/source/libraries/sessions.rst
Original file line number Diff line number Diff line change
Expand Up @@ -569,10 +569,10 @@ You can choose the Database group to use by adding a new line to the

.. literalinclude:: sessions/040.php

If you'd rather not do all of this by hand, you can use the ``session:migration`` command
If you'd rather not do all of this by hand, you can use the ``make:migration --session`` command
from the cli to generate a migration file for you::

> php spark session:migration
> php spark make:migration --session
> php spark migrate

This command will take the **sessionSavePath** and **sessionMatchIP** settings into account
Expand Down