optimization install

This commit is contained in:
Tokumeikoi 2020-02-08 15:49:59 +08:00
parent 406f1ee80d
commit e57a70970f

View File

@ -58,7 +58,9 @@ class V2boardInstall extends Command
]);
\Artisan::call('config:clear');
\Artisan::call('config:cache');
if (!DB::connection()->getPdo()) {
try {
DB::connection()->getPdo();
} catch (\Exception $e) {
abort(500, '数据库连接失败');
}
$file = \File::get(base_path() . '/database/install.sql');