refactor: 修改图片/视频上传记录表名
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
|
||||
use think\migration\Migrator;
|
||||
|
||||
class CreateSysImage extends Migrator
|
||||
class CreateSysImageUploadRecord extends Migrator
|
||||
{
|
||||
/**
|
||||
* Change Method.
|
||||
@@ -27,7 +27,7 @@ class CreateSysImage extends Migrator
|
||||
*/
|
||||
public function change()
|
||||
{
|
||||
$table = $this->table('sys_image', ['engine' => 'MyISAM', 'comment' => '图片上传表']);
|
||||
$table = $this->table('sys_image_upload_record', ['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' => '图片路径'])
|
||||
@@ -1,9 +1,8 @@
|
||||
<?php
|
||||
|
||||
use think\migration\Migrator;
|
||||
use think\migration\db\Column;
|
||||
|
||||
class CreateSysVideo extends Migrator
|
||||
class CreateSysVideoUploadRecord extends Migrator
|
||||
{
|
||||
/**
|
||||
* Change Method.
|
||||
@@ -28,7 +27,7 @@ class CreateSysVideo extends Migrator
|
||||
*/
|
||||
public function change()
|
||||
{
|
||||
$table = $this->table('sys_video', ['engine' => 'MyISAM', 'comment' => '视频上传表']);
|
||||
$table = $this->table('sys_video_upload_record', ['engine' => 'MyISAM', 'comment' => '视频上传表']);
|
||||
$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' => '视频路径'])
|
||||
Reference in New Issue
Block a user