From ef35f1d616292627d08b319158e7db8c04178f79 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E6=99=AF=E7=AB=8B?= Date: Thu, 13 Oct 2022 19:52:42 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=95=B0=E6=8D=AE=E5=BA=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- database/migrations/20221013031925_install_admin.php | 3 ++- database/migrations/20221013080600_install_shop.php | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/database/migrations/20221013031925_install_admin.php b/database/migrations/20221013031925_install_admin.php index f1b07689f..bc0b5fc2f 100644 --- a/database/migrations/20221013031925_install_admin.php +++ b/database/migrations/20221013031925_install_admin.php @@ -285,11 +285,12 @@ SQL 'engine' => 'InnoDB', 'collation' => 'utf8mb4_general_ci', 'comment' => '系统-任务', ]) ->addColumn('code', 'string', ['limit' => 20, 'default' => '', 'comment' => '任务编号']) - ->addColumn('title', 'string', ['limit' => 80, 'default' => '', 'comment' => '任务名称']) + ->addColumn('title', 'string', ['limit' => 100, 'default' => '', 'comment' => '任务名称']) ->addColumn('command', 'string', ['limit' => 500, 'default' => '', 'comment' => '执行指令']) ->addColumn('exec_pid', 'integer', ['limit' => 20, 'default' => 0, 'comment' => '执行进程']) ->addColumn('exec_data', 'text', ['default' => '', 'comment' => '执行参数']) ->addColumn('exec_time', 'integer', ['limit' => 20, 'default' => 0, 'comment' => '执行时间']) + ->addColumn('exec_desc', 'string', ['limit' => 500, 'default' => '', 'comment' => '执行描述']) ->addColumn('enter_time', 'decimal', ['precision' => 20, 'scale' => 4, 'default' => 0, 'comment' => '开始时间']) ->addColumn('outer_time', 'decimal', ['precision' => 20, 'scale' => 4, 'default' => 0, 'comment' => '结束时间']) ->addColumn('loops_time', 'integer', ['limit' => 20, 'default' => 0, 'comment' => '循环时间']) diff --git a/database/migrations/20221013080600_install_shop.php b/database/migrations/20221013080600_install_shop.php index 89dd3cff6..c9a1b4574 100644 --- a/database/migrations/20221013080600_install_shop.php +++ b/database/migrations/20221013080600_install_shop.php @@ -26,7 +26,7 @@ class InstallShop extends Migrator // 创建数据表,存在则跳过 $this->hasTable($table) || $this->table($table, [ - 'engine' => 'InnoDB', 'collation' => 'utf8mb4_general_ci', 'comment' => '', + 'engine' => 'InnoDB', 'collation' => 'utf8mb4_general_ci', 'comment' => '商城-商品-主体', ]) ->addColumn('code', 'string', ['limit' => 20, 'default' => '', 'comment' => '商品编号']) ->addColumn('name', 'string', ['limit' => 500, 'default' => '', 'comment' => '商品名称'])