From f60f8613d890fd9f967f933af704aa78f12c6712 Mon Sep 17 00:00:00 2001 From: jsasg <735273025@qq.com> Date: Fri, 10 Jan 2025 13:36:07 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E4=BF=AE=E6=94=B9=E6=96=87?= =?UTF-8?q?=E7=AB=A0=E8=A1=A8=E7=BB=93=E6=9E=84=E8=BF=81=E7=A7=BB=E6=96=87?= =?UTF-8?q?=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- database/migrations/20241220062631_create_article.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/database/migrations/20241220062631_create_article.php b/database/migrations/20241220062631_create_article.php index 5c461413..6c9bac7f 100644 --- a/database/migrations/20241220062631_create_article.php +++ b/database/migrations/20241220062631_create_article.php @@ -36,7 +36,6 @@ class CreateArticle extends Migrator ->addColumn('image', 'string', ['limit' => 125, 'null' => true, 'default' => null, 'comment' => '封面图片']) ->addColumn('desc', 'string', ['limit' => 255, 'null' => true, 'default' => null, 'comment' => '描述信息']) ->addColumn('recommend', 'boolean', ['null' => false, 'default' => 0, 'comment' => '是否推荐:1是,0否']) - ->addColumn('release_time', 'integer', ['null' => false, 'comment' => '发布时间']) ->addColumn('sort', 'integer', ['null' => false, 'default' => 0, 'comment' => '排序']) ->addColumn('link', 'string', ['limit' => 255, 'null' => true, 'default' => null, 'comment' => '外链']) ->addColumn('content', 'text', ['null' => false, 'comment' => '内容']) @@ -45,6 +44,7 @@ class CreateArticle extends Migrator ->addColumn('seo_title', 'string', ['limit' => 255, 'null' => true, 'default' => null, 'comment' => 'SEO标题']) ->addColumn('seo_keywords', 'string', ['limit' => 255, 'null' => true, 'default' => null, 'comment' => 'SEO关键字']) ->addColumn('seo_desc', 'string', ['limit' => 255, 'null' => true, 'default' => null, 'comment' => 'SEO描述']) + ->addColumn('release_time', 'datetime', ['null' => false, 'comment' => '发布时间']) ->addColumn('created_at', 'timestamp', ['null' => false, 'default' => 'CURRENT_TIMESTAMP', 'comment' => '创建时间']) ->addColumn('updated_at', 'timestamp', ['null' => false, 'default' => 'CURRENT_TIMESTAMP', 'update' => 'CURRENT_TIMESTAMP', 'comment' => '更新时间']) ->addColumn('deleted_at', 'timestamp', ['null' => true, 'comment' => '删除时间'])