支持多数据库

This commit is contained in:
zyimm 2023-01-11 16:43:11 +08:00
parent 0fed8e8816
commit cf3f98d59a

View File

@ -92,7 +92,7 @@ abstract class Command extends \think\console\Command
protected function getConfig($name, $default = null) protected function getConfig($name, $default = null)
{ {
$config = Config::pull('migration'); $config = Config::pull('migration');
return isset($config[$name]) ? $config[$name] : $default; return $config[$name] ?? $default;
} }
protected function verifyMigrationDirectory($path) protected function verifyMigrationDirectory($path)