refactor: 调整图片上传

This commit is contained in:
2025-02-19 16:28:47 +08:00
parent ea05b7f424
commit 65b83b5f9b
6 changed files with 86 additions and 74 deletions

View File

@@ -27,7 +27,7 @@ class CreateSysImage extends Migrator
*/
public function change()
{
$table = $this->table('sys_image', ['engine' => 'MyISAM', 'comment' => '图片表']);
$table = $this->table('sys_image', ['engine' => 'MyISAM', 'comment' => '图片上传表']);
$table->addColumn('language_id', 'integer', ['signed' => false, 'null' => false, 'comment' => '语言ID'])
->addColumn('module', 'string', ['limit' => 64, 'null' => false, 'comment' => '图片所属模块'])
->addColumn('image_path', 'string', ['limit' => 125, 'null' => false, 'comment' => '图片路径'])