refactor: 调整图片/视频上传

This commit is contained in:
2025-02-19 16:58:31 +08:00
parent 4f43341534
commit 6588280fa9
7 changed files with 36 additions and 36 deletions

View File

@@ -32,10 +32,10 @@ class CreateSysImage extends Migrator
->addColumn('module', 'string', ['limit' => 64, 'null' => false, 'comment' => '图片所属模块'])
->addColumn('image_path', 'string', ['limit' => 125, 'null' => false, 'comment' => '图片路径'])
->addColumn('image_thumb', 'string', ['limit' => 125, 'null' => false, 'comment' => '缩略图路径'])
->addColumn('image_size', 'integer', ['null' => false, 'comment' => '图片大小'])
->addColumn('image_type', 'string', ['limit' => 125, 'null' => false, 'comment' => '图片类型'])
->addColumn('image_md5', 'string', ['limit' => 32, 'null' => false, 'comment' => '图片md5值'])
->addColumn('image_sha1', 'string', ['limit' => 40, 'null' => false, 'comment' => '图片sha1值'])
->addColumn('file_size', 'integer', ['null' => false, 'comment' => '图片大小'])
->addColumn('file_type', 'string', ['limit' => 125, 'null' => false, 'comment' => '图片类型'])
->addColumn('file_md5', 'string', ['limit' => 32, 'null' => false, 'comment' => '图片md5值'])
->addColumn('file_sha1', 'string', ['limit' => 40, 'null' => false, 'comment' => '图片sha1值'])
->addColumn('created_at', 'timestamp', ['null' => false, 'default' => 'CURRENT_TIMESTAMP', 'comment' => '创建时间'])
->addColumn('deleted_at', 'timestamp', ['null' => true, 'comment' => '删除时间'])
->create();

View File

@@ -32,10 +32,10 @@ class CreateSysVideo extends Migrator
$table->addColumn('language_id', 'integer', ['signed' => false, 'null' => false, 'comment' => '语言ID'])
->addColumn('module', 'string', ['limit' => 64, 'null' => false, 'comment' => '视频所属模块'])
->addColumn('video_path', 'string', ['limit' => 125, 'null' => false, 'comment' => '视频路径'])
->addColumn('video_size', 'integer', ['null' => false, 'comment' => '视频大小'])
->addColumn('video_type', 'string', ['limit' => 125, 'null' => false, 'comment' => '视频类型'])
->addColumn('video_md5', 'string', ['limit' => 32, 'null' => false, 'comment' => '视频md5值'])
->addColumn('video_sha1', 'string', ['limit' => 40, 'null' => false, 'comment' => '视频sha1值'])
->addColumn('file_size', 'integer', ['null' => false, 'comment' => '视频大小'])
->addColumn('file_type', 'string', ['limit' => 125, 'null' => false, 'comment' => '视频类型'])
->addColumn('file_md5', 'string', ['limit' => 32, 'null' => false, 'comment' => '视频md5值'])
->addColumn('file_sha1', 'string', ['limit' => 40, 'null' => false, 'comment' => '视频sha1值'])
->addColumn('created_at', 'timestamp', ['null' => false, 'default' => 'CURRENT_TIMESTAMP', 'comment' => '创建时间'])
->addColumn('deleted_at', 'timestamp', ['null' => true, 'comment' => '删除时间'])
->create();