Merge pull request #5873 from kenjis/fix-docs-migration

docs: update migration
This commit is contained in:
kenjis 2022-04-07 14:11:47 +09:00 committed by GitHub
commit 0f672e4dca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 4 deletions

View File

@ -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:

View File

@ -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