Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

chore: update enforce NOT NULL column description (#5347)

Tianzhou (天舟)32e2166048ae
diff --git a/frontend/src/locales/sql-review/en-US.json b/frontend/src/locales/sql-review/en-US.json
index 730df4849c..fb4a1558c2 100644
--- a/frontend/src/locales/sql-review/en-US.json
+++ b/frontend/src/locales/sql-review/en-US.json
@@ -203,7 +203,7 @@
},
"column-set-default-for-not-null": {
"title": "Enforce default value on \"NOT NULL\" columns",
- "description": "Existing NULL data will be incompatible with this rule, and the legacy application code inserting NULL value will throw error. Suggested error level: Error"
+ "description": "For a 'NOT NULL' column, if a value is not assigned to the column when inserting a new row and the column does not have a default value, the database will reject the insertion of that row. Setting a default value for a new column can also ensure compatibility with legacy application. Suggested error level: Error"
},
"column-auto-increment-must-integer": {
"title": "Enforce the use of \"INTEGER\" data type for auto-increment columns",
diff --git a/frontend/src/locales/sql-review/zh-CN.json b/frontend/src/locales/sql-review/zh-CN.json
index e3be89467a..28c433a7af 100644
--- a/frontend/src/locales/sql-review/zh-CN.json
+++ b/frontend/src/locales/sql-review/zh-CN.json
@@ -204,7 +204,7 @@
},
"column-set-default-for-not-null": {
"title": "强制 \"NOT NULL\" 列设置默认值",
- "description": "会和已经存在的 NULL 数据不兼容,此外旧应用代码中未提供有效值的插入语句都将报错。建议错误等级:错误"
+ "description": "对于 \"NOT NULL\" 列,在插入新行时如果不给该列赋值且该列没有默认值,数据库将会拒绝该行插入。对于新增列设置默认值也可以更好的兼容旧应用代码。建议错误等级:错误"
},
"column-auto-increment-must-integer": {
"title": "强制自增列使用整数类型",