mirror of
https://github.com/v2board/v2board.git
synced 2025-01-11 00:29:09 +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, '数据库文件格式有误');
|
abort(500, '数据库文件格式有误');
|
||||||
}
|
}
|
||||||
$this->info('正在导入数据库请稍等...');
|
$this->info('正在导入数据库请稍等...');
|
||||||
foreach ($sql as $item) {
|
|
||||||
try {
|
try {
|
||||||
|
foreach ($sql as $item) {
|
||||||
DB::select(DB::raw($item));
|
DB::select(DB::raw($item));
|
||||||
} catch (\Exception $e) {
|
|
||||||
}
|
}
|
||||||
|
} catch (\Exception $e) {
|
||||||
}
|
}
|
||||||
$this->info('更新完毕');
|
$this->info('更新完毕');
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user