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' => '商品名称'])