mirror of
				https://github.com/v2board/v2board.git
				synced 2025-10-31 17:31:49 +08:00 
			
		
		
		
	optimization install
This commit is contained in:
		| @@ -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'); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user