From 8db97a14c0b1dc42b87d0b4b040ea4546a2e38b6 Mon Sep 17 00:00:00 2001 From: XiangMin Liu <635750556@qq.com> Date: Sat, 18 Mar 2023 00:55:56 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E6=95=B0=E6=8D=AE=E5=BA=93?= =?UTF-8?q?=E7=B4=A2=E5=BC=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Leevel/Database/SelectDatabase.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/Leevel/Database/SelectDatabase.php b/src/Leevel/Database/SelectDatabase.php index 4562cf3d3..c8da883dd 100644 --- a/src/Leevel/Database/SelectDatabase.php +++ b/src/Leevel/Database/SelectDatabase.php @@ -16,5 +16,12 @@ protected function selectDatabase(): void InputOption::VALUE_REQUIRED, 'Select database.', ); + + $this->addOption( + 'databaseindex', + null, + InputOption::VALUE_REQUIRED, + 'Select database index.', + ); } }