Skip to content

Commit f9f590f

Browse files
committed
修改数据库迁移
1 parent 59a538f commit f9f590f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

migrations/2020_09_21_072831_create_user_table.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public function up(): void
2121
$table->string('avatar', '255')->default('')->comment('用户头像');
2222
$table->string('mobile', '15')->default('')->comment('手机号码');
2323
$table->string('last_ip', '15')->default(0)->comment('上次登录IP');
24-
$table->tinyInteger('sex', '3')->default(0)->comment('用户性别');
24+
$table->tinyInteger('sex')->default(0)->comment('用户性别');
2525
$table->string('creater', '100')->default('')->comment('创建者');
2626
$table->string('email', '100')->default('')->comment('邮箱地址');
2727
$table->string('address', '255')->default('')->comment('收货地址');

migrations/2020_11_06_072831_create_operate_log_table.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
use Hyperf\Database\Schema\Blueprint;
55
use Hyperf\Database\Migrations\Migration;
66

7-
class CreateOperateLog extends Migration
7+
class CreateOperateLogTable extends Migration
88
{
99
/**
1010
* Run the migrations.
@@ -15,7 +15,7 @@ public function up(): void
1515
$table->engine = 'InnoDB';
1616
$table->increments('id');
1717
$table->string('action', '255')->default('')->comment('操作');
18-
$table->text('data')->default('')->comment('请求参数');
18+
$table->text('data')->comment('请求参数');
1919
$table->string('username', '100')->default('')->comment('操作人账号');
2020
$table->string('operator', '100')->default('')->comment('操作人描述');
2121
$table->string('response_result', '1000')->default('')->comment('响应结果');

0 commit comments

Comments
 (0)