Skip to content

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

chore: add table comment rule to oceanbase oracle (#14127)

boojack219232b85166
diff --git a/frontend/src/types/sql-review-schema.yaml b/frontend/src/types/sql-review-schema.yaml
index 037a6ab4a1..876f393265 100644
--- a/frontend/src/types/sql-review-schema.yaml
+++ b/frontend/src/types/sql-review-schema.yaml
@@ -194,6 +194,22 @@
type: NUMBER
default: 64
engine: ORACLE
+- type: table.comment
+ category: TABLE
+ componentList:
+ - key: required
+ payload:
+ type: BOOLEAN
+ default: false
+ - key: requiredClassification
+ payload:
+ type: BOOLEAN
+ default: false
+ - key: maxLength
+ payload:
+ type: NUMBER
+ default: 64
+ engine: OCEANBASE_ORACLE
- type: table.disallow-partition
category: TABLE
engine: MYSQL
diff --git a/frontend/src/types/sql-review.prod.yaml b/frontend/src/types/sql-review.prod.yaml
index 58d466f788..efe59cba9e 100644
--- a/frontend/src/types/sql-review.prod.yaml
+++ b/frontend/src/types/sql-review.prod.yaml
@@ -149,6 +149,12 @@ ruleList:
required: true
maxLength: 64
engine: ORACLE
+ - type: table.comment
+ level: ERROR
+ payload:
+ required: true
+ maxLength: 64
+ engine: OCEANBASE_ORACLE
- type: table.no-duplicate-index
level: WARNING
engine: MYSQL