refactor: 修改migration文件

This commit is contained in:
2025-03-25 10:36:42 +08:00
parent aaa9ff3ed9
commit a18b0088da

View File

@@ -34,7 +34,7 @@ class CreateVideo extends Migrator
->addColumn('name', 'string', ['limit' => 64 , 'null' => false, 'comment' => '名称'])
->addColumn('desc', 'string', ['limit' => 255, 'null' => true, 'default' => null, 'comment' => '描述信息'])
->addColumn('image', 'string', ['limit' => 125, 'null' => false, 'comment' => '封面图片'])
->addColumn('video', 'string', ['limit' => 125, 'null' => false, 'comment' => '视频地址'])
->addColumn('video', '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('recommend', 'boolean', ['null' => false, 'default' => 1, 'comment' => '是否推荐:1是,0否'])