mirror of
https://github.com/v2board/v2board.git
synced 2025-01-11 00:29:09 +08:00
update
This commit is contained in:
parent
70faa4c510
commit
d32fccbff8
@ -48,7 +48,7 @@ class V2boardInit extends Command
|
|||||||
abort(500, '数据库文件格式有误');
|
abort(500, '数据库文件格式有误');
|
||||||
}
|
}
|
||||||
foreach($sql as $item) {
|
foreach($sql as $item) {
|
||||||
echo 'RUN' . $item . "\r\n";
|
echo 'RUN ' . $item . "\r\n";
|
||||||
try {
|
try {
|
||||||
DB::select(DB::raw($item));
|
DB::select(DB::raw($item));
|
||||||
} catch (\Exception $e) {}
|
} catch (\Exception $e) {}
|
||||||
|
@ -48,7 +48,7 @@ class V2boardUpdate extends Command
|
|||||||
abort(500, '数据库文件格式有误');
|
abort(500, '数据库文件格式有误');
|
||||||
}
|
}
|
||||||
foreach($sql as $item) {
|
foreach($sql as $item) {
|
||||||
echo 'RUN' . $item . "\r\n";
|
echo 'RUN ' . $item . "\r\n";
|
||||||
try {
|
try {
|
||||||
DB::select(DB::raw($item));
|
DB::select(DB::raw($item));
|
||||||
} catch (\Exception $e) {}
|
} catch (\Exception $e) {}
|
||||||
|
Loading…
Reference in New Issue
Block a user