Skip to content

Commit 0e7a1d9

Browse files
committed
增加日志中间件,增加数据库更新工具
1 parent cab05c2 commit 0e7a1d9

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

src/Update/db/20210107.sql

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,12 @@ CREATE TABLE `admin_operation_log` (
1414
`updated_at` timestamp NULL DEFAULT NULL,
1515
PRIMARY KEY (`id`) USING BTREE,
1616
KEY `admin_operation_log_user_id_index` (`user_id`)
17-
) ENGINE=InnoDB AUTO_INCREMENT=160 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
17+
) ENGINE=InnoDB AUTO_INCREMENT=160 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
18+
--
19+
-- 更新一下内容
20+
-- ALTER TABLE `admin_operation_log`
21+
-- DROP COLUMN `input`,
22+
-- ADD COLUMN `request` json NULL COMMENT '请求信息' AFTER `updated_at`,
23+
-- ADD COLUMN `header` json NULL COMMENT '请求头信息' AFTER `request`,
24+
-- ADD COLUMN `result` json NULL COMMENT '响应结果信息' AFTER `header`;
25+
--

0 commit comments

Comments
 (0)