refactor: 修改导航项链接类型字段

This commit is contained in:
2025-03-15 10:03:06 +08:00
parent e56721bf0f
commit 58c27a1696
9 changed files with 16 additions and 62 deletions

View File

@@ -36,7 +36,7 @@ class CreateSysBannerItem extends Migrator
->addColumn('type', 'string', ['limit' => 16, 'null' => false, 'comment' => '类型: image为图片, video为视频'])
->addColumn('image', 'string', ['limit' => 255, 'null' => false, 'comment' => '图片'])
->addColumn('video', 'string', ['limit' => 255, 'null' => false, 'comment' => '视频'])
->addColumn('link_to', 'string', ['limit' => 64, 'null' => false, 'comment' => '链接到(类型): article:文章, goods_category:商品分类, goods:商品, custom:自定义链接'])
->addColumn('link_to', 'string', ['limit' => 64, 'null' => false, 'comment' => '链接到(类型): article:文章, article_category:文章分类, product:产品, product_category:产品分类, custom:自定义链接'])
->addColumn('link', 'string', ['limit' => 255, 'null' => false, 'comment' => '链接'])
->addColumn('sort', 'integer', ['limit' => 11, 'null' => false, 'default' => 0, 'comment' => '排序'])
->addColumn('status', 'boolean', ['limit' => 1, 'null' => false, 'default' => 1, 'comment' => '-1为禁用, 1为启用'])