diff --git a/phinx-bootstrap.php b/phinx-bootstrap.php index d9c25b6..3f6c3e1 100644 --- a/phinx-bootstrap.php +++ b/phinx-bootstrap.php @@ -43,7 +43,8 @@ require $baseDir . '/vendor/workerman/webman-framework/src/support/helpers.php'; require $baseDir . '/app/functions.php'; Webman\Config::load($baseDir . '/config', ['route', 'middleware', 'process', 'server', 'static']); -$thinkorm = config('thinkorm', []); +// 与 phinx.php 一致直接加载 thinkorm,避免 Webman config() 与 Phinx 表前缀不一致 +$thinkorm = require $baseDir . '/config/thinkorm.php'; if (!empty($thinkorm)) { support\think\Db::setConfig($thinkorm); }