Skip to content

Commit 0f672e4

Browse files
authored
Merge pull request #5873 from kenjis/fix-docs-migration
docs: update migration
2 parents 7ff9081 + 180dca4 commit 0f672e4

2 files changed

Lines changed: 9 additions & 4 deletions

File tree

user_guide_src/source/dbmgmt/migration.rst

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,8 +162,13 @@ You can use (refresh) with the following options:
162162
Displays a list of all migrations and the date and time they ran, or '--' if they have not been run::
163163

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

168173
You can use (status) with the following options:
169174

user_guide_src/source/libraries/sessions.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -569,10 +569,10 @@ You can choose the Database group to use by adding a new line to the
569569

570570
.. literalinclude:: sessions/040.php
571571

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

575-
> php spark session:migration
575+
> php spark make:migration --session
576576
> php spark migrate
577577

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

0 commit comments

Comments
 (0)