From 44ff06a2fd0d9d818d95a3a96037d28a801909a3 Mon Sep 17 00:00:00 2001 From: augushong Date: Wed, 19 Aug 2020 22:13:39 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E6=95=B0=E6=8D=AE=E5=BA=93?= =?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/20200418120809_create_table_post.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/database/migrations/20200418120809_create_table_post.php b/database/migrations/20200418120809_create_table_post.php index 3631860..07f4e38 100644 --- a/database/migrations/20200418120809_create_table_post.php +++ b/database/migrations/20200418120809_create_table_post.php @@ -30,6 +30,7 @@ class CreateTablePost extends Migrator public function change() { $table = $this->table('post',['comment'=>"内容文章"]); + $table->addColumn(ColumnFormat::stringShort('uid')->setComment('标题')); $table->addColumn(ColumnFormat::stringNormal('title')->setComment('标题')); $table->addColumn(ColumnFormat::stringUrl('poster')->setComment('封面')); $table->addColumn(ColumnFormat::timestamp('create_time')); @@ -44,6 +45,8 @@ class CreateTablePost extends Migrator $table->addColumn(ColumnFormat::integer('hits')->setComment('访问量')); $table->addColumn(ColumnFormat::stringUrl('jump_to_url')->setComment('跳转链接')); $table->addColumn(ColumnFormat::integerTypeStatus('jump_to_url_status')->setComment('0:不显示,1:显示连接,2:自动跳转')); + $table->addColumn(ColumnFormat::integerTypeStatus('jump_to_btn_title')->setComment('跳转按钮名称')); + $table->addColumn(ColumnFormat::stringUrl('author_name')->setComment('作者名称')); $table->addColumn(ColumnFormat::integer('sort')->setComment('排序,越大越靠前')); $table->addColumn(ColumnFormat::stringShort('type')->setComment('类型,1:文章,有分类有标签,2:页面,无分类无标签,N:其他形式用,用于区分不同的用途')); $table->addColumn(Column::make('files','text')->setComment('附件'));