mirror of
https://github.com/v2board/v2board.git
synced 2025-02-25 06:40:26 +08:00
update: fix v2board udpate
This commit is contained in:
parent
b275ad469b
commit
ab02935fd7
@ -50,11 +50,13 @@ class V2boardUpdate extends Command
|
||||
abort(500, '数据库文件格式有误');
|
||||
}
|
||||
$this->info('正在导入数据库请稍等...');
|
||||
try {
|
||||
foreach ($sql as $item) {
|
||||
foreach ($sql as $item) {
|
||||
if (!$item) continue;
|
||||
try {
|
||||
DB::select(DB::raw($item));
|
||||
} catch (\Exception $e) {
|
||||
echo $e->getMessage() . PHP_EOL;
|
||||
}
|
||||
} catch (\Exception $e) {
|
||||
}
|
||||
$this->info('更新完毕');
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user