refactor: 修改migration文件

This commit is contained in:
2025-03-15 16:55:32 +08:00
parent 09c9fd725b
commit 2fd321ffc5
4 changed files with 43 additions and 3 deletions

View File

@@ -38,7 +38,7 @@ class CreateVideo extends Migrator
->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否'])
->addColumn('status', MysqlAdapter::INT_TINY, ['null' => false, 'default' => 1, 'comment' => '状态:1启用,-1禁用'])
->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_keywords', 'string', ['limit' => 255, 'default' => null, 'comment' => 'SEO关键字'])
->addColumn('seo_desc', 'string', ['limit' => 255, 'default' => null, 'comment' => 'SEO描述'])