diff --git a/plugins/baser-core/src/Database/Migration/BcMigration.php b/plugins/baser-core/src/Database/Migration/BcMigration.php index 8cb47da5e7..14a6a57d5e 100644 --- a/plugins/baser-core/src/Database/Migration/BcMigration.php +++ b/plugins/baser-core/src/Database/Migration/BcMigration.php @@ -37,7 +37,11 @@ class BcMigration extends AbstractMigration */ public function table(string $tableName, array $options = []): Table { - $connection = $this->input->getOption('connection')?? 'default'; + if($this->input->hasParameterOption('--connection')) { + $connection = $this->input->getParameterOption('--connection'); + } else { + $connection = 'default'; + } $prefix = ConnectionManager::get($connection)->config()['prefix']; return parent::table($prefix . $tableName); }