新增附件管理

This commit is contained in:
yanwenwu
2020-02-02 22:11:38 +08:00
parent a752c7914a
commit 766d156bf8
7 changed files with 65 additions and 13 deletions

View File

@@ -30,6 +30,7 @@ class Attachments extends Migrator
{
$table = $this->table('attachments',['engine'=>'Myisam', 'comment' => '附件管理', 'signed' => false]);
$table->addColumn('path', 'string',['limit' => 50,'default'=>'','comment'=>'附件存储路径'])
->addColumn('url', 'string',['default'=> '', 'limit' => 100, 'comment'=>'资源地址'])
->addColumn('mime_type', 'string',['default'=> '', 'limit' => 100, 'comment'=>'资源mimeType'])
->addColumn('file_ext', 'string',['default'=> '','limit' => 100, 'comment'=>'资源后缀'])
->addColumn('file_size', 'integer',['default'=> 0, 'comment'=>'资源大小'])