Skip to content

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

chore(proto): add deployment config as an available target (#6282)

p0nyee4357210ba0
diff --git a/frontend/src/types/proto/store/plan.ts b/frontend/src/types/proto/store/plan.ts
index 79a6473a2a..5e374c45f4 100644
--- a/frontend/src/types/proto/store/plan.ts
+++ b/frontend/src/types/proto/store/plan.ts
@@ -56,9 +56,8 @@ export interface PlanConfig_CreateDatabaseConfig_LabelsEntry {
export interface PlanConfig_ChangeDatabaseConfig {
/**
* The resource name of the target.
- * Format: projects/{project}/logicalDatabases/{ldb1}.
- * Format: projects/{project}/logicalDatabases/{ldb1}/logicalTables/{ltb1}.
- * Format: instances/{xxx}/databases/{db1}.
+ * Format: instances/{instance-id}/databases/{database-name}.
+ * Format: projects/{project}/deploymentConfig.
*/
target: string;
/**
diff --git a/frontend/src/types/proto/v1/rollout_service.ts b/frontend/src/types/proto/v1/rollout_service.ts
index ccca653a3d..2f5d46a25a 100644
--- a/frontend/src/types/proto/v1/rollout_service.ts
+++ b/frontend/src/types/proto/v1/rollout_service.ts
@@ -143,9 +143,8 @@ export interface Plan_CreateDatabaseConfig_LabelsEntry {
export interface Plan_ChangeDatabaseConfig {
/**
* The resource name of the target.
- * Format: projects/{project}/logicalDatabases/{ldb1}.
- * Format: projects/{project}/logicalDatabases/{ldb1}/logicalTables/{ltb1}.
- * Format: instances/{xxx}/databases/{db1}.
+ * Format: instances/{instance-id}/databases/{database-name}.
+ * Format: projects/{project}/deploymentConfig.
*/
target: string;
/**
diff --git a/proto/gen/grpc-doc/store/README.md b/proto/gen/grpc-doc/store/README.md
index cce8860849..b605842dd8 100644
--- a/proto/gen/grpc-doc/store/README.md
+++ b/proto/gen/grpc-doc/store/README.md
@@ -960,7 +960,7 @@ OIDCIdentityProviderConfig is the structure for OIDC identity provider config.
| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
-| target | [string](#string) | | The resource name of the target. Format: projects/{project}/logicalDatabases/{ldb1}. Format: projects/{project}/logicalDatabases/{ldb1}/logicalTables/{ltb1}. Format: instances/{xxx}/databases/{db1}. |
+| target | [string](#string) | | The resource name of the target. Format: instances/{instance-id}/databases/{database-name}. Format: projects/{project}/deploymentConfig. |
| sheet | [string](#string) | | The resource name of the sheet. Format: projects/{project}/sheets/{sheet} |
| type | [PlanConfig.ChangeDatabaseConfig.Type](#bytebase-store-PlanConfig-ChangeDatabaseConfig-Type) | | |
| schema_version | [string](#string) | | schema_version is parsed from VCS file name. It is automatically generated in the UI workflow. |
diff --git a/proto/gen/grpc-doc/v1/README.md b/proto/gen/grpc-doc/v1/README.md
index cf0ec475d1..e3b2da2e38 100644
--- a/proto/gen/grpc-doc/v1/README.md
+++ b/proto/gen/grpc-doc/v1/README.md
@@ -5700,7 +5700,7 @@ When paginating, all other parameters provided to `ListPlans` must match the cal
| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
-| target | [string](#string) | | The resource name of the target. Format: projects/{project}/logicalDatabases/{ldb1}. Format: projects/{project}/logicalDatabases/{ldb1}/logicalTables/{ltb1}. Format: instances/{xxx}/databases/{db1}. |
+| target | [string](#string) | | The resource name of the target. Format: instances/{instance-id}/databases/{database-name}. Format: projects/{project}/deploymentConfig. |
| sheet | [string](#string) | | The resource name of the sheet. Format: projects/{project}/sheets/{sheet} |
| type | [Plan.ChangeDatabaseConfig.Type](#bytebase-v1-Plan-ChangeDatabaseConfig-Type) | | |
| schema_version | [string](#string) | | schema_version is parsed from VCS file name. It is automatically generated in the UI workflow. |
diff --git a/proto/generated-go/store/plan.pb.go b/proto/generated-go/store/plan.pb.go
index 3d443d849e..42a7b1acc9 100644
--- a/proto/generated-go/store/plan.pb.go
+++ b/proto/generated-go/store/plan.pb.go
@@ -425,9 +425,8 @@ type PlanConfig_ChangeDatabaseConfig struct {
unknownFields protoimpl.UnknownFields
// The resource name of the target.
- // Format: projects/{project}/logicalDatabases/{ldb1}.
- // Format: projects/{project}/logicalDatabases/{ldb1}/logicalTables/{ltb1}.
- // Format: instances/{xxx}/databases/{db1}.
+ // Format: instances/{instance-id}/databases/{database-name}.
+ // Format: projects/{project}/deploymentConfig.
Target string `protobuf:"bytes,1,opt,name=target,proto3" json:"target,omitempty"`
// The resource name of the sheet.
// Format: projects/{project}/sheets/{sheet}
diff --git a/proto/generated-go/v1/rollout_service.pb.go b/proto/generated-go/v1/rollout_service.pb.go
index 61c13a0518..b93d659702 100644
--- a/proto/generated-go/v1/rollout_service.pb.go
+++ b/proto/generated-go/v1/rollout_service.pb.go
@@ -2049,9 +2049,8 @@ type Plan_ChangeDatabaseConfig struct {
unknownFields protoimpl.UnknownFields
// The resource name of the target.
- // Format: projects/{project}/logicalDatabases/{ldb1}.
- // Format: projects/{project}/logicalDatabases/{ldb1}/logicalTables/{ltb1}.
- // Format: instances/{xxx}/databases/{db1}.
+ // Format: instances/{instance-id}/databases/{database-name}.
+ // Format: projects/{project}/deploymentConfig.
Target string `protobuf:"bytes,1,opt,name=target,proto3" json:"target,omitempty"`
// The resource name of the sheet.
// Format: projects/{project}/sheets/{sheet}
diff --git a/proto/store/plan.proto b/proto/store/plan.proto
index 72e2ab786c..aff0ceeed1 100644
--- a/proto/store/plan.proto
+++ b/proto/store/plan.proto
@@ -52,9 +52,8 @@ message PlanConfig {
message ChangeDatabaseConfig {
// The resource name of the target.
- // Format: projects/{project}/logicalDatabases/{ldb1}.
- // Format: projects/{project}/logicalDatabases/{ldb1}/logicalTables/{ltb1}.
- // Format: instances/{xxx}/databases/{db1}.
+ // Format: instances/{instance-id}/databases/{database-name}.
+ // Format: projects/{project}/deploymentConfig.
string target = 1;
// The resource name of the sheet.
// Format: projects/{project}/sheets/{sheet}
diff --git a/proto/v1/rollout_service.proto b/proto/v1/rollout_service.proto
index 0e94b8d3ba..eea4ae65a2 100644
--- a/proto/v1/rollout_service.proto
+++ b/proto/v1/rollout_service.proto
@@ -170,9 +170,8 @@ message Plan {
message ChangeDatabaseConfig {
// The resource name of the target.
- // Format: projects/{project}/logicalDatabases/{ldb1}.
- // Format: projects/{project}/logicalDatabases/{ldb1}/logicalTables/{ltb1}.
- // Format: instances/{xxx}/databases/{db1}.
+ // Format: instances/{instance-id}/databases/{database-name}.
+ // Format: projects/{project}/deploymentConfig.
string target = 1;
// The resource name of the sheet.
// Format: projects/{project}/sheets/{sheet}