update: sql

This commit is contained in:
tokumeikoi 2022-05-06 13:53:31 +08:00
parent 20e365e771
commit 5bd811e217
2 changed files with 11 additions and 3 deletions

View File

@ -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']}")
]);
}

View File

@ -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`;