From e85b6748aacefe02211ae083014f99832738117b Mon Sep 17 00:00:00 2001 From: kenjis Date: Sat, 9 Dec 2023 10:42:38 +0900 Subject: [PATCH 1/2] docs: add section for --dbgroup --- user_guide_src/source/dbmgmt/db_commands.rst | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/user_guide_src/source/dbmgmt/db_commands.rst b/user_guide_src/source/dbmgmt/db_commands.rst index 2e5bdb9cd656..919b77feefc6 100644 --- a/user_guide_src/source/dbmgmt/db_commands.rst +++ b/user_guide_src/source/dbmgmt/db_commands.rst @@ -28,6 +28,22 @@ you can use the ``db:table --show`` command: When using this command it is assumed that a table exists. Otherwise, CodeIgniter will complain that the database has no tables. +.. _db-command-specify-the-dbgroup: + +Specify the Database Group +========================== + +db:table --dbgroup +------------------ + +.. versionadded:: 4.5.0 + +You can specify the database group to use with the ``--dbgroup`` option: + +.. code-block:: console + + php spark db:table --show --dbgroup tests + Retrieve Some Records ===================== From ff0f9699794c2efb2da4e1f44907d886dd0470a4 Mon Sep 17 00:00:00 2001 From: kenjis Date: Sat, 9 Dec 2023 10:42:57 +0900 Subject: [PATCH 2/2] docs: add changelog --- user_guide_src/source/changelogs/v4.5.0.rst | 2 ++ 1 file changed, 2 insertions(+) diff --git a/user_guide_src/source/changelogs/v4.5.0.rst b/user_guide_src/source/changelogs/v4.5.0.rst index 4be91284d68a..d1ded3089280 100644 --- a/user_guide_src/source/changelogs/v4.5.0.rst +++ b/user_guide_src/source/changelogs/v4.5.0.rst @@ -233,6 +233,8 @@ Commands - Added ``spark config:check`` command to check Config values. See :ref:`confirming-config-values` for the details. - Added ``spark lang:find`` command to update translations keys. See :ref:`generating-translation-files-via-command` for the details. +- The ``--dbgroup`` option has been added to the ``spark db:table`` command. + See :ref:`Database Commands `. Testing =======