Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

must_have_columns 设置不符合预期 #583

Closed
qinzhi1209 opened this issue Jun 13, 2023 · 3 comments
Closed

must_have_columns 设置不符合预期 #583

qinzhi1209 opened this issue Jun 13, 2023 · 3 comments

Comments

@qinzhi1209
Copy link

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

重现
image

环境

  • 数据库: [mysql]
  • 版本: [例如 8.0]

参数
must_have_columns

@miaoyongbin
Copy link

设置er_must_have_columns级别为2即可

@qinzhi1209
Copy link
Author

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

@hanchuanchuan
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants