hanchuanchuan / goInception

一个集审核、执行、备份及生成回滚语句于一身的MySQL运维工具
https://hanchuanchuan.github.io/goInception/
GNU General Public License v3.0
1.6k stars 545 forks source link

must_have_columns 设置不符合预期 #583

Closed qinzhi1209 closed 1 year ago

qinzhi1209 commented 1 year ago

描述 设置了参数must_have_columns = "create_time,modify_time,rec_status" ,但是当建表语句中没有create_time或者其他两个字段时,审核状态只是warning不是error

重现

image

环境

参数 must_have_columns

miaoyongbin commented 1 year ago

设置er_must_have_columns级别为2即可

qinzhi1209 commented 1 year ago

好的,谢谢,但是我设置了如下: disable_types = "timestamp" er_disable_types = 2 当建表字段类型是timestamp报错只是warning而不是error

image
hanchuanchuan commented 1 year ago

设置ERROR LEVEL参数er_invalid_data_type. 请查阅文档和内置函数inc show levels来设置告警级别.