mirror of
https://github.com/v2board/v2board.git
synced 2024-11-10 09:39:10 +08:00
update: sql
This commit is contained in:
parent
20e365e771
commit
5bd811e217
@ -31,14 +31,20 @@ class ThemeController extends Controller
|
||||
$themeConfigs[$this->themes] = $themeConfig;
|
||||
}
|
||||
return response([
|
||||
'data' => $themeConfigs
|
||||
'data' => [
|
||||
'themes' => $themeConfigs,
|
||||
'active' => config('v2board.theme', 'v2board')
|
||||
]
|
||||
]);
|
||||
}
|
||||
|
||||
public function getThemeConfig(Request $request)
|
||||
{
|
||||
$payload = $request->validate([
|
||||
'name' => 'required|in:' . join(',', $this->themes)
|
||||
]);
|
||||
return response([
|
||||
'data' => config('theme.v2board')
|
||||
'data' => config("theme.{$payload['name']}")
|
||||
]);
|
||||
}
|
||||
|
||||
|
@ -562,8 +562,10 @@ ALTER TABLE `v2_notice`
|
||||
ADD `tags` varchar(255) COLLATE 'utf8_general_ci' NULL AFTER `img_url`;
|
||||
|
||||
ALTER TABLE `v2_ticket`
|
||||
DROP `last_reply_user_id`,
|
||||
ADD `reply_status` tinyint(1) NOT NULL DEFAULT '1' COMMENT '0:待回复 1:已回复' AFTER `status`;
|
||||
|
||||
ALTER TABLE `v2_server_v2ray`
|
||||
DROP `settings`;
|
||||
|
||||
ALTER TABLE `v2_ticket`
|
||||
DROP `last_reply_user_id`;
|
||||
|
Loading…
Reference in New Issue
Block a user