From 6efd3091603327c19363a95ac7fc812e4ca57a68 Mon Sep 17 00:00:00 2001 From: jsasg <735273025@qq.com> Date: Wed, 26 Mar 2025 17:22:33 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E4=BF=AE=E6=94=B9=E8=A7=86?= =?UTF-8?q?=E9=A2=91=E4=B8=8A=E4=BC=A0=E5=9B=BE=E7=89=87=E5=8F=AF=E7=A9=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- database/migrations/20241220072926_create_video.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/database/migrations/20241220072926_create_video.php b/database/migrations/20241220072926_create_video.php index ef5da63d..877a85ef 100644 --- a/database/migrations/20241220072926_create_video.php +++ b/database/migrations/20241220072926_create_video.php @@ -33,7 +33,7 @@ class CreateVideo extends Migrator ->addColumn('category_id', 'integer', ['signed' => false , 'null' => false, 'comment' => '分类ID']) ->addColumn('name', 'string', ['limit' => 64 , 'null' => false, 'comment' => '名称']) ->addColumn('desc', 'string', ['limit' => 255, 'null' => true, 'default' => null, 'comment' => '描述信息']) - ->addColumn('image', 'string', ['limit' => 125, 'null' => false, 'comment' => '封面图片']) + ->addColumn('image', 'string', ['limit' => 125, 'null' => true, 'default' => null, 'comment' => '封面图片']) ->addColumn('video', 'string', ['limit' => 125, 'null' => true, 'default' => null, 'comment' => '视频地址']) ->addColumn('link', 'string', ['limit' => 125, 'null' => true, 'default' => null, 'comment' => '外链地址']) ->addColumn('sort', 'integer', ['null' => false, 'default' => 0, 'comment' => '排序'])