From dc8f605603683892ead4f87ed8c845e2a56c4a9d Mon Sep 17 00:00:00 2001 From: ryuring Date: Mon, 30 Dec 2024 15:57:29 +0900 Subject: [PATCH] =?UTF-8?q?Seed=E3=82=AF=E3=83=A9=E3=82=B9=E3=81=AB?= =?UTF-8?q?=E3=81=A6=E3=80=81DB=E3=81=AE=E6=8E=A5=E7=B6=9A=E5=85=88?= =?UTF-8?q?=E3=82=92=E5=88=87=E3=82=8A=E6=9B=BF=E3=81=88=E3=82=8C=E3=81=AA?= =?UTF-8?q?=E3=81=84=E5=95=8F=E9=A1=8C=E3=82=92=E6=94=B9=E5=96=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ユニットテストではうまくいっていたが、外部プラグインなどでうまくいっていなかった。 --- plugins/baser-core/src/Database/Migration/BcSeed.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugins/baser-core/src/Database/Migration/BcSeed.php b/plugins/baser-core/src/Database/Migration/BcSeed.php index 006ad835f4..b964eb1598 100644 --- a/plugins/baser-core/src/Database/Migration/BcSeed.php +++ b/plugins/baser-core/src/Database/Migration/BcSeed.php @@ -41,6 +41,8 @@ public function table(string $tableName, array $options = []): Table { if($this->input->hasParameterOption('connection')) { $connection = $this->input->getParameterOption('connection'); + } elseif($this->input->hasParameterOption('--connection')) { + $connection = $this->input->getParameterOption('--connection'); } else { $connection = 'default'; }