修复db字段缺少默认值导致写入数据失败问题

This commit is contained in:
zengqiao
2022-08-24 21:27:43 +08:00
parent f0792db6b3
commit b0501cc80d

View File

@@ -35,11 +35,11 @@ CREATE TABLE `logi_security_oplog`
id int auto_increment primary key,
operator_ip varchar(20) not null comment '操作者ip',
operator varchar(20) null comment '操作者账号',
operate_page varchar(16) not null comment '操作页面',
operate_page varchar(16) not null default '' comment '操作页面',
operate_type varchar(16) not null comment '操作类型',
target_type varchar(16) not null comment '对象分类',
target varchar(20) not null comment '操作对象',
operation_methods varchar(20) not null comment '操作方式',
operation_methods varchar(20) not null comment '操作方式',
detail text null comment '日志详情',
create_time timestamp default CURRENT_TIMESTAMP null,
update_time timestamp default CURRENT_TIMESTAMP null on update CURRENT_TIMESTAMP comment '更新时间',