Skip to content

Commit dc8f605

Browse files
committed
Seedクラスにて、DBの接続先を切り替えれない問題を改善
ユニットテストではうまくいっていたが、外部プラグインなどでうまくいっていなかった。
1 parent 2142315 commit dc8f605

File tree

1 file changed

+2
-0
lines changed
  • plugins/baser-core/src/Database/Migration

1 file changed

+2
-0
lines changed

plugins/baser-core/src/Database/Migration/BcSeed.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@ public function table(string $tableName, array $options = []): Table
4141
{
4242
if($this->input->hasParameterOption('connection')) {
4343
$connection = $this->input->getParameterOption('connection');
44+
} elseif($this->input->hasParameterOption('--connection')) {
45+
$connection = $this->input->getParameterOption('--connection');
4446
} else {
4547
$connection = 'default';
4648
}

0 commit comments

Comments
 (0)