refactor: 修改图片上传区分模块

This commit is contained in:
2025-01-18 17:46:35 +08:00
parent 7f58da4e24
commit ba58714f5f
4 changed files with 11 additions and 6 deletions

View File

@@ -29,7 +29,7 @@ class CreateSysImage extends Migrator
{
$table = $this->table('sys_image', ['engine' => 'MyISAM', 'comment' => '图片表']);
$table->addColumn('language_id', 'integer', ['signed' => false, 'null' => false, 'comment' => '语言ID'])
->addColumn('image_name', 'string', ['limit' => 125, 'null' => false, 'comment' => '图片名称'])
->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' => '图片大小'])