Skip to content

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

chore: support deployment config target (#7938)

Danny Xu602c0e0581a1
diff --git a/frontend/src/types/proto/store/plan.ts b/frontend/src/types/proto/store/plan.ts
index 5ac704a7f0..999b64b05d 100644
--- a/frontend/src/types/proto/store/plan.ts
+++ b/frontend/src/types/proto/store/plan.ts
@@ -68,7 +68,9 @@ export interface PlanConfig_ChangeDatabaseConfig {
/**
* The resource name of the target.
* Format: instances/{instance-id}/databases/{database-name}.
- * Format: projects/{project}/databaseGroups/{databaseGroup}
+ * Format: projects/{project}/databaseGroups/{databaseGroup}.
+ * Format: projects/{project}/deploymentConfigs/default. The plan should
+ * have a single step and single spec for the deployment configuration type.
*/
target: string;
/**
diff --git a/frontend/src/types/proto/v1/rollout_service.ts b/frontend/src/types/proto/v1/rollout_service.ts
index 0c3c5bc9ac..8d8ef4c0d1 100644
--- a/frontend/src/types/proto/v1/rollout_service.ts
+++ b/frontend/src/types/proto/v1/rollout_service.ts
@@ -153,7 +153,9 @@ export interface Plan_ChangeDatabaseConfig {
/**
* The resource name of the target.
* Format: instances/{instance-id}/databases/{database-name}.
- * Format: projects/{project}/databaseGroups/{databaseGroup}
+ * Format: projects/{project}/databaseGroups/{databaseGroup}.
+ * Format: projects/{project}/deploymentConfigs/default. The plan should
+ * have a single step and single spec for the deployment configuration type.
*/
target: string;
/**
diff --git a/proto/gen/grpc-doc/store/README.md b/proto/gen/grpc-doc/store/README.md
index b9dd8553cc..8cf56207a2 100644
--- a/proto/gen/grpc-doc/store/README.md
+++ b/proto/gen/grpc-doc/store/README.md
@@ -1519,7 +1519,7 @@ InstanceOptions is the option for instances.
| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
-| target | [string](#string) | | The resource name of the target. Format: instances/{instance-id}/databases/{database-name}. Format: projects/{project}/databaseGroups/{databaseGroup} |
+| target | [string](#string) | | The resource name of the target. Format: instances/{instance-id}/databases/{database-name}. Format: projects/{project}/databaseGroups/{databaseGroup}. Format: projects/{project}/deploymentConfigs/default. The plan should have a single step and single spec for the deployment configuration type. |
| 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 1d6e515ecd..c5cd6905a5 100644
--- a/proto/gen/grpc-doc/v1/README.md
+++ b/proto/gen/grpc-doc/v1/README.md
@@ -7355,7 +7355,7 @@ When paginating, all other parameters provided to `ListRolloutTaskRuns` must mat
| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
-| target | [string](#string) | | The resource name of the target. Format: instances/{instance-id}/databases/{database-name}. Format: projects/{project}/databaseGroups/{databaseGroup} |
+| target | [string](#string) | | The resource name of the target. Format: instances/{instance-id}/databases/{database-name}. Format: projects/{project}/databaseGroups/{databaseGroup}. Format: projects/{project}/deploymentConfigs/default. The plan should have a single step and single spec for the deployment configuration type. |
| 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 912d48cdfd..880239eaec 100644
--- a/proto/generated-go/store/plan.pb.go
+++ b/proto/generated-go/store/plan.pb.go
@@ -439,7 +439,9 @@ type PlanConfig_ChangeDatabaseConfig struct {
// The resource name of the target.
// Format: instances/{instance-id}/databases/{database-name}.
- // Format: projects/{project}/databaseGroups/{databaseGroup}
+ // Format: projects/{project}/databaseGroups/{databaseGroup}.
+ // Format: projects/{project}/deploymentConfigs/default. The plan should
+ // have a single step and single spec for the deployment configuration type.
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 9e3a26f3a1..afbda39604 100644
--- a/proto/generated-go/v1/rollout_service.pb.go
+++ b/proto/generated-go/v1/rollout_service.pb.go
@@ -2687,7 +2687,9 @@ type Plan_ChangeDatabaseConfig struct {
// The resource name of the target.
// Format: instances/{instance-id}/databases/{database-name}.
- // Format: projects/{project}/databaseGroups/{databaseGroup}
+ // Format: projects/{project}/databaseGroups/{databaseGroup}.
+ // Format: projects/{project}/deploymentConfigs/default. The plan should
+ // have a single step and single spec for the deployment configuration type.
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 0be761f90e..553659f4db 100644
--- a/proto/store/plan.proto
+++ b/proto/store/plan.proto
@@ -56,7 +56,9 @@ message PlanConfig {
message ChangeDatabaseConfig {
// The resource name of the target.
// Format: instances/{instance-id}/databases/{database-name}.
- // Format: projects/{project}/databaseGroups/{databaseGroup}
+ // Format: projects/{project}/databaseGroups/{databaseGroup}.
+ // Format: projects/{project}/deploymentConfigs/default. The plan should
+ // have a single step and single spec for the deployment configuration type.
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 a0de57e4f5..fe964618cd 100644
--- a/proto/v1/rollout_service.proto
+++ b/proto/v1/rollout_service.proto
@@ -222,7 +222,9 @@ message Plan {
message ChangeDatabaseConfig {
// The resource name of the target.
// Format: instances/{instance-id}/databases/{database-name}.
- // Format: projects/{project}/databaseGroups/{databaseGroup}
+ // Format: projects/{project}/databaseGroups/{databaseGroup}.
+ // Format: projects/{project}/deploymentConfigs/default. The plan should
+ // have a single step and single spec for the deployment configuration type.
string target = 1;
// The resource name of the sheet.
// Format: projects/{project}/sheets/{sheet}