refactor: 去除视频表中status字段

This commit is contained in:
2025-04-15 17:52:10 +08:00
parent 4700442a08
commit 9e1441fece
3 changed files with 0 additions and 4 deletions

View File

@@ -33,7 +33,6 @@ class Video
'category_id', 'category_id',
'sort', 'sort',
'recommend', 'recommend',
'status',
'created_at' 'created_at'
]) ])
->with(['category' => function ($query) { ->with(['category' => function ($query) {
@@ -188,7 +187,6 @@ class Video
'link' => '外链', 'link' => '外链',
'sort' => '排序', 'sort' => '排序',
'recommend' => '是否推荐', 'recommend' => '是否推荐',
'status' => '状态',
'seo_title' => 'seo标题', 'seo_title' => 'seo标题',
'seo_keywords' => 'seo关键词', 'seo_keywords' => 'seo关键词',
'seo_desc' => 'seo描述', 'seo_desc' => 'seo描述',

View File

@@ -27,7 +27,6 @@ class VideoBaseModel extends BaseModel
'link' => 'string', 'link' => 'string',
'sort' => 'int', 'sort' => 'int',
'recommend' => 'int', 'recommend' => 'int',
'status' => 'int',
'seo_title' => 'string', 'seo_title' => 'string',
'seo_keywords' => 'string', 'seo_keywords' => 'string',
'seo_desc' => 'string', 'seo_desc' => 'string',

View File

@@ -38,7 +38,6 @@ class CreateVideo extends Migrator
->addColumn('link', '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('sort', 'integer', ['null' => false, 'default' => 0, 'comment' => '排序'])
->addColumn('recommend', 'boolean', ['null' => false, 'default' => 1, 'comment' => '是否推荐:1是,0否']) ->addColumn('recommend', 'boolean', ['null' => false, 'default' => 1, 'comment' => '是否推荐:1是,0否'])
->addColumn('status', MysqlAdapter::PHINX_TYPE_TINY_INTEGER, ['null' => false, 'default' => 1, 'comment' => '状态:1启用,-1禁用'])
->addColumn('seo_title', 'string', ['limit' => 255, 'default' => null, 'comment' => 'SEO标题']) ->addColumn('seo_title', 'string', ['limit' => 255, 'default' => null, 'comment' => 'SEO标题'])
->addColumn('seo_keywords', 'string', ['limit' => 255, 'default' => null, 'comment' => 'SEO关键字']) ->addColumn('seo_keywords', 'string', ['limit' => 255, 'default' => null, 'comment' => 'SEO关键字'])
->addColumn('seo_desc', 'string', ['limit' => 255, 'default' => null, 'comment' => 'SEO描述']) ->addColumn('seo_desc', 'string', ['limit' => 255, 'default' => null, 'comment' => 'SEO描述'])