修改日志表的字段长度

This commit is contained in:
季圣华
2021-08-30 00:55:50 +08:00
parent d6c7f1190d
commit 1c94ad6830
2 changed files with 9 additions and 2 deletions

View File

@@ -361,7 +361,7 @@ CREATE TABLE `jsh_log` (
`id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键', `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键',
`user_id` bigint(20) DEFAULT NULL COMMENT '用户id', `user_id` bigint(20) DEFAULT NULL COMMENT '用户id',
`operation` varchar(500) DEFAULT NULL COMMENT '操作模块名称', `operation` varchar(500) DEFAULT NULL COMMENT '操作模块名称',
`client_ip` varchar(50) DEFAULT NULL COMMENT '客户端IP', `client_ip` varchar(200) DEFAULT NULL COMMENT '客户端IP',
`create_time` datetime DEFAULT NULL COMMENT '创建时间', `create_time` datetime DEFAULT NULL COMMENT '创建时间',
`status` tinyint(4) DEFAULT NULL COMMENT '操作状态 0==成功1==失败', `status` tinyint(4) DEFAULT NULL COMMENT '操作状态 0==成功1==失败',
`content` varchar(1000) DEFAULT NULL COMMENT '详情', `content` varchar(1000) DEFAULT NULL COMMENT '详情',

View File

@@ -1200,4 +1200,11 @@ INSERT INTO `jsh_function` VALUES ('248', '030150', '调拨明细', '0301', '/re
-- -------------------------------------------------------- -- --------------------------------------------------------
alter table jsh_tenant add type varchar(1) DEFAULT '0' COMMENT '租户类型0免费租户1付费租户' after bills_num_limit; alter table jsh_tenant add type varchar(1) DEFAULT '0' COMMENT '租户类型0免费租户1付费租户' after bills_num_limit;
alter table jsh_tenant drop column bills_num_limit; alter table jsh_tenant drop column bills_num_limit;
alter table jsh_tenant add expire_time datetime DEFAULT NULL COMMENT '到期时间' after create_time; alter table jsh_tenant add expire_time datetime DEFAULT NULL COMMENT '到期时间' after create_time;
-- --------------------------------------------------------
-- 时间 2021年8月29日
-- by jishenghua
-- 给日志表的ip字段改长度
-- --------------------------------------------------------
alter table jsh_log change client_ip client_ip varchar(200) DEFAULT NULL COMMENT '客户端IP';