Skip to content

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

feat: enable schema sync for all plans and add it to the plan table (#3181)

Tianzhou (天舟)17c0ebaf508a
diff --git a/api/plan.go b/api/plan.go
index da6d064051..be75a78272 100644
--- a/api/plan.go
+++ b/api/plan.go
@@ -209,7 +209,7 @@ var FeatureMatrix = map[FeatureType][3]bool{
// Database management
FeaturePITR: {false, true, true},
FeatureReadReplicaConnection: {false, false, true},
- FeatureSyncSchema: {false, false, true},
+ FeatureSyncSchema: {true, true, true},
// Policy Control
FeatureApprovalPolicy: {false, true, true},
FeatureBackupPolicy: {false, true, true},
diff --git a/frontend/src/locales/subscription/en-US.json b/frontend/src/locales/subscription/en-US.json
index 5b21f01916..e51317b465 100644
--- a/frontend/src/locales/subscription/en-US.json
+++ b/frontend/src/locales/subscription/en-US.json
@@ -79,7 +79,8 @@
"schedule-change": "Scheduled change at specific time",
"review-and-backup-policy": "Review and backup policy",
"tenancy": "Multi-Region / Multi-Tenancy deployment",
- "read-replica": "Separate connection for read-only operations"
+ "read-replica": "Separate connection for read-only operations",
+ "sync-schema": "Synchronize schema between databases"
}
},
"collaboration": {
diff --git a/frontend/src/locales/subscription/zh-CN.json b/frontend/src/locales/subscription/zh-CN.json
index 2e55b526a0..7fb44c0332 100644
--- a/frontend/src/locales/subscription/zh-CN.json
+++ b/frontend/src/locales/subscription/zh-CN.json
@@ -78,7 +78,8 @@
"schedule-change": "设定任务执行时间",
"review-and-backup-policy": "审核和备份策略",
"tenancy": "多地域/多租户部署",
- "read-replica": "为只读操作提供单独连接"
+ "read-replica": "为只读操作提供单独连接",
+ "sync-schema": "库表同步"
}
},
"collaboration": {
diff --git a/frontend/src/types/plan.ts b/frontend/src/types/plan.ts
index b95e99ff2d..6136f1de53 100644
--- a/frontend/src/types/plan.ts
+++ b/frontend/src/types/plan.ts
@@ -92,7 +92,7 @@ export const FEATURE_MATRIX: Map<FeatureType, boolean[]> = new Map([
// Database management
["bb.feature.pitr", [false, true, true]],
["bb.feature.read-replica-connection", [false, false, true]],
- ["bb.feature.sync-schema", [false, false, true]],
+ ["bb.feature.sync-schema", [true, true, true]],
// Policy Control
["bb.feature.approval-policy", [false, true, true]],
["bb.feature.backup-policy", [false, true, true]],
diff --git a/frontend/src/types/plan.yaml b/frontend/src/types/plan.yaml
index 90fb1c4c47..936294b650 100644
--- a/frontend/src/types/plan.yaml
+++ b/frontend/src/types/plan.yaml
@@ -3,6 +3,7 @@ categoryList:
featureList:
- instance-count
- schema-change
+ - sync-schema
- migration-history
- sql-editor
- disaster-recovery
@@ -45,6 +46,7 @@ planList:
- type: schema-change
content: schema-change-basic
tooltip: schema-change-basic-tooltip
+ - type: sync-schema
- type: migration-history
- type: sql-editor
- type: disaster-recovery
@@ -83,6 +85,7 @@ planList:
- type: schema-change
content: schema-change-advanced
tooltip: schema-change-advanced-tooltip
+ - type: sync-schema
- type: migration-history
- type: sql-editor
- type: disaster-recovery
@@ -127,6 +130,7 @@ planList:
- type: schema-change
content: schema-change-advanced
tooltip: schema-change-advanced-tooltip
+ - type: sync-schema
- type: migration-history
- type: sql-editor
- type: disaster-recovery