mirror of
https://github.com/v2board/v2board.git
synced 2025-01-10 16:19:10 +08:00
update: fix code support php8
This commit is contained in:
parent
00cd3e26be
commit
0f0f726269
@ -50,11 +50,11 @@ class V2boardUpdate extends Command
|
||||
abort(500, '数据库文件格式有误');
|
||||
}
|
||||
$this->info('正在导入数据库请稍等...');
|
||||
foreach ($sql as $item) {
|
||||
try {
|
||||
try {
|
||||
foreach ($sql as $item) {
|
||||
DB::select(DB::raw($item));
|
||||
} catch (\Exception $e) {
|
||||
}
|
||||
} catch (\Exception $e) {
|
||||
}
|
||||
$this->info('更新完毕');
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user