From 5ee5304c24cc96df3a2d6c3dcf0ca069454da40c Mon Sep 17 00:00:00 2001 From: kenjis Date: Thu, 7 Apr 2022 08:47:57 +0900 Subject: [PATCH 1/2] docs: update `spark migrate:status` output --- user_guide_src/source/dbmgmt/migration.rst | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/user_guide_src/source/dbmgmt/migration.rst b/user_guide_src/source/dbmgmt/migration.rst index cd5787328a96..ff81f4ff0708 100644 --- a/user_guide_src/source/dbmgmt/migration.rst +++ b/user_guide_src/source/dbmgmt/migration.rst @@ -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: From 180dca40ece4a328892bbdbf050f5d7394cec947 Mon Sep 17 00:00:00 2001 From: kenjis Date: Thu, 7 Apr 2022 08:48:31 +0900 Subject: [PATCH 2/2] docs: update deprecated command --- user_guide_src/source/libraries/sessions.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/user_guide_src/source/libraries/sessions.rst b/user_guide_src/source/libraries/sessions.rst index 59557db92cf8..11ac22f12add 100644 --- a/user_guide_src/source/libraries/sessions.rst +++ b/user_guide_src/source/libraries/sessions.rst @@ -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