From 900b94ca78ff0ee76b2a3e2367cfb22f43245532 Mon Sep 17 00:00:00 2001 From: jsasg <735273025@qq.com> Date: Tue, 25 Mar 2025 10:36:42 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E4=BF=AE=E6=94=B9migration?= =?UTF-8?q?=E6=96=87=E4=BB=B6?= 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 0ba5e51e..ef5da63d 100644 --- a/database/migrations/20241220072926_create_video.php +++ b/database/migrations/20241220072926_create_video.php @@ -34,7 +34,7 @@ class CreateVideo extends Migrator ->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('video', 'string', ['limit' => 125, 'null' => false, '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' => '排序']) ->addColumn('recommend', 'boolean', ['null' => false, 'default' => 1, 'comment' => '是否推荐:1是,0否'])