Skip to content

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

chore: update the naming convention for drop table (#1993)

ecmadao2dc02e03a7c4
diff --git a/frontend/src/locales/sql-review/en-US.json b/frontend/src/locales/sql-review/en-US.json
index ead4422762..163c4054b6 100644
--- a/frontend/src/locales/sql-review/en-US.json
+++ b/frontend/src/locales/sql-review/en-US.json
@@ -31,7 +31,7 @@
},
"table-drop-naming-convention": {
"title": "Drop table with naming convention",
- "description": "Only tables named with specific patterns can be deleted. The requires users to do a rename before dropping the table. The table name must have \"_delete\" suffix by default.",
+ "description": "Only tables named with specific patterns can be deleted. The requires users to do a rename before dropping the table. The table name must have \"_del\" suffix by default.",
"component": {
"name_format": {
"title": "Table name format (regex)"
diff --git a/frontend/src/locales/sql-review/zh-CN.json b/frontend/src/locales/sql-review/zh-CN.json
index 08aa7d3aa9..6514508b98 100644
--- a/frontend/src/locales/sql-review/zh-CN.json
+++ b/frontend/src/locales/sql-review/zh-CN.json
@@ -31,7 +31,7 @@
},
"table-drop-naming-convention": {
"title": "待删除表的命名规范",
- "description": "只有符合命名规范的表才可以被删除,通过强制用户在删除前重命名来避免误删。默认情况下待删除表名必须以 \"_delete\" 结尾。",
+ "description": "只有符合命名规范的表才可以被删除,通过强制用户在删除前重命名来避免误删。默认情况下待删除表名必须以 \"_del\" 结尾。",
"component": {
"name_format": {
"title": "命名规则(正则)"
diff --git a/frontend/src/types/sqlReviewConfig.yaml b/frontend/src/types/sqlReviewConfig.yaml
index eac9b60be1..58a344e802 100644
--- a/frontend/src/types/sqlReviewConfig.yaml
+++ b/frontend/src/types/sqlReviewConfig.yaml
@@ -33,7 +33,7 @@ templateList:
- key: name_format
payload:
type: STRING
- default: "_delete$"
+ default: _del$
- type: statement.select.no-select-all
category: STATEMENT
engine: COMMON
@@ -179,7 +179,7 @@ templateList:
- key: name_format
payload:
type: STRING
- default: "_delete$"
+ default: _del$
- type: naming.table
category: NAMING
engine: COMMON