mirror of
https://github.com/codeigniter4/CodeIgniter4.git
synced 2025-02-20 11:44:28 +08:00
Merge pull request #5873 from kenjis/fix-docs-migration
docs: update migration
This commit is contained in:
commit
0f672e4dca
@ -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:
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user