update tutorial

This commit is contained in:
Tokumeikoi 2020-02-18 22:44:56 +08:00
parent 1b7fc9529f
commit f7fc6b9dfc
2 changed files with 3 additions and 2 deletions

View File

@ -8,7 +8,8 @@ class TutorialSave extends FormRequest
{
CONST RULES = [
'title' => 'required',
'category' => 'required|in:windows,macos,ios,android,linux,router',
// 1:windows 2:macos 3:ios 4:android 5:linux 6:router
'category' => 'required|in:1,2,3,4,5,6',
'description' => 'required',
'icon' => 'required'
];

View File

@ -164,4 +164,4 @@ ALTER TABLE `v2_order`
ADD `refund_amount` int(11) NULL COMMENT '退款金额' AFTER `surplus_amount`;
ALTER TABLE `v2_tutorial`
ADD `category` varchar(255) COLLATE 'utf8_general_ci' NOT NULL AFTER `description`;
ADD `category_id` int(11) NOT NULL AFTER `id`;