Skip to content

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

chore: retire deployment config as spec target (#12745)

boojack4766269981a2
diff --git a/backend/api/v1/rollout_service_task.go b/backend/api/v1/rollout_service_task.go
index b72de38a62..1e2e5dd64d 100644
--- a/backend/api/v1/rollout_service_task.go
+++ b/backend/api/v1/rollout_service_task.go
@@ -321,16 +321,12 @@ func getTaskCreatesFromChangeDatabaseConfig(ctx context.Context, s *store.Store,
// possible target:
// 1. instances/{instance}/databases/{database}
// 2. projects/{project}/databaseGroups/{databaseGroup}
- // 3. projects/{project}/deploymentConfigs/{deploymentConfig}
if _, _, err := common.GetInstanceDatabaseID(c.Target); err == nil {
return getTaskCreatesFromChangeDatabaseConfigDatabaseTarget(ctx, s, spec, c, project, registerEnvironmentID)
}
if _, _, err := common.GetProjectIDDatabaseGroupID(c.Target); err == nil {
return nil, nil, errors.Errorf("unexpected database group target %q", c.Target)
}
- if _, _, err := common.GetProjectIDDeploymentConfigID(c.Target); err == nil {
- return nil, nil, errors.Errorf("unexpected deployment config target %q", c.Target)
- }
return nil, nil, errors.Errorf("unknown target %q", c.Target)
}
diff --git a/frontend/src/components/IssueV1/components/HeaderSection/Actions/create/CreateButton.vue b/frontend/src/components/IssueV1/components/HeaderSection/Actions/create/CreateButton.vue
index 1d50f5aba4..ad9f1af4ef 100644
--- a/frontend/src/components/IssueV1/components/HeaderSection/Actions/create/CreateButton.vue
+++ b/frontend/src/components/IssueV1/components/HeaderSection/Actions/create/CreateButton.vue
@@ -62,7 +62,6 @@ import { type Plan_ChangeDatabaseConfig } from "@/types/proto/v1/plan_service";
import type { Sheet } from "@/types/proto/v1/sheet_service";
import {
extractDatabaseGroupName,
- extractDeploymentConfigName,
extractProjectResourceName,
extractSheetUID,
flattenTaskV1List,
@@ -220,11 +219,8 @@ const createSheets = async () => {
const sheetNameMap = new Map<string, string>();
for (let i = 0; i < pendingCreateSheetList.length; i++) {
const sheet = pendingCreateSheetList[i];
- if (
- extractDeploymentConfigName(sheet.database) ||
- extractDatabaseGroupName(sheet.database)
- ) {
- // If a sheet's target is a deploymentConfig or a db group, it should be unset
+ if (extractDatabaseGroupName(sheet.database)) {
+ // If a sheet's target is a db group, it should be unset
// since it actually doesn't belongs to any exact database.
sheet.database = "";
}
diff --git a/frontend/src/components/IssueV1/components/Sidebar/EarliestAllowedTime.vue b/frontend/src/components/IssueV1/components/Sidebar/EarliestAllowedTime.vue
index 6dd82aaa5f..b762802635 100644
--- a/frontend/src/components/IssueV1/components/Sidebar/EarliestAllowedTime.vue
+++ b/frontend/src/components/IssueV1/components/Sidebar/EarliestAllowedTime.vue
@@ -60,7 +60,6 @@ import { useI18n } from "vue-i18n";
import FeatureBadge from "@/components/FeatureGuard/FeatureBadge.vue";
import FeatureModal from "@/components/FeatureGuard/FeatureModal.vue";
import {
- isDeploymentConfigChangeTaskV1,
isTaskEditable,
latestTaskRunForTask,
notifyNotEditableLegacyIssue,
@@ -101,9 +100,6 @@ const shouldShowEarliestAllowedTime = computed(() => {
if (!isDatabaseChangeRelatedIssue(issue.value)) {
return false;
}
- if (isDeploymentConfigChangeTaskV1(issue.value, selectedTask.value)) {
- return false;
- }
return true;
});
diff --git a/frontend/src/components/IssueV1/components/Sidebar/GhostSection/GhostFlagsPanel.vue b/frontend/src/components/IssueV1/components/Sidebar/GhostSection/GhostFlagsPanel.vue
index bce08d998c..c87245a9e7 100644
--- a/frontend/src/components/IssueV1/components/Sidebar/GhostSection/GhostFlagsPanel.vue
+++ b/frontend/src/components/IssueV1/components/Sidebar/GhostSection/GhostFlagsPanel.vue
@@ -90,9 +90,10 @@ import LearnMoreLink from "@/components/LearnMoreLink.vue";
import ErrorList from "@/components/misc/ErrorList.vue";
import { Drawer, DrawerContent, RichDatabaseName } from "@/components/v2";
import { planServiceClient } from "@/grpcweb";
-import { pushNotification } from "@/store";
+import { pushNotification, useDBGroupStore } from "@/store";
import type { Plan_Spec } from "@/types/proto/v1/plan_service";
import { Task_Type } from "@/types/proto/v1/rollout_service";
+import { extractDatabaseGroupName } from "@/utils";
import FlagsForm from "./FlagsForm";
import { allowChangeTaskGhostFlags, useIssueGhostContext } from "./common";
@@ -105,6 +106,7 @@ const {
dialog,
events,
} = useIssueContext();
+const dbGroupStore = useDBGroupStore();
const isUpdating = ref(false);
const stage = computed(() => {
@@ -143,13 +145,15 @@ const readonly = computed(() => {
return denyEditGhostFlagsReasons.value.length > 0;
});
-const isDeploymentConfig = computed(() => {
- return !!spec.value?.changeDatabaseConfig?.target?.match(
- /\/deploymentConfigs\/[^/]+/
- );
-});
-
const chooseUpdateSpecs = async () => {
+ let isBatchMode = false;
+ const target = spec.value?.changeDatabaseConfig?.target;
+ if (target && extractDatabaseGroupName(target)) {
+ const dbGroup = dbGroupStore.getDBGroupByName(target);
+ if (dbGroup?.multitenancy) {
+ isBatchMode = true;
+ }
+ }
const { tasks } = await chooseUpdateTarget(
issue.value,
task.value,
@@ -158,7 +162,7 @@ const chooseUpdateSpecs = async () => {
allowChangeTaskGhostFlags(issue.value, task),
dialog,
t("task.online-migration.ghost-parameters"),
- isDeploymentConfig.value
+ isBatchMode
);
const specs = tasks
diff --git a/frontend/src/components/IssueV1/components/Sidebar/GhostSection/common.ts b/frontend/src/components/IssueV1/components/Sidebar/GhostSection/common.ts
index 3b16338796..f6efcc67fc 100644
--- a/frontend/src/components/IssueV1/components/Sidebar/GhostSection/common.ts
+++ b/frontend/src/components/IssueV1/components/Sidebar/GhostSection/common.ts
@@ -21,7 +21,6 @@ import {
import type { Task } from "@/types/proto/v1/rollout_service";
import {
Task_Status,
- Task_Type,
task_StatusToJSON,
} from "@/types/proto/v1/rollout_service";
import {
@@ -66,12 +65,6 @@ export const provideIssueGhostContext = () => {
return ghostViewTypeForTask(issue.value, task.value);
});
const showFlagsPanel = ref(false);
- const isDeploymentConfig = computed(() => {
- const spec = specForTask(issue.value.planEntity, task.value);
- return !!spec?.changeDatabaseConfig?.target?.match(
- /\/deploymentConfigs\/[^/]+/
- );
- });
const denyEditGhostFlagsReasons = computed(() => {
if (isCreating.value) {
@@ -95,35 +88,12 @@ export const provideIssueGhostContext = () => {
return [t("issue.error.you-don-have-privilege-to-edit-this-issue")];
}
}
-
- if (isDeploymentConfig.value) {
- // If a task is created by deploymentConfig. It is editable only when all
- // its "brothers" (created by the same deploymentConfig) are editable.
- // By which "editable" means a task's status meets the requirements.
- const ghostSyncTasks = flattenTaskV1List(
- issue.value.rolloutEntity
- ).filter(
- (task) => task.type === Task_Type.DATABASE_SCHEMA_UPDATE_GHOST_SYNC
+ if (!allowChangeTaskGhostFlags(issue.value, task.value)) {
+ errors.push(
+ t("task.online-migration.error.x-status-task-is-not-editable", {
+ status: task_StatusToJSON(task.value.status),
+ })
);
- if (
- ghostSyncTasks.some(
- (task) => !allowChangeTaskGhostFlags(issue.value, task)
- )
- ) {
- errors.push(
- t(
- "task.online-migration.error.some-tasks-are-not-editable-in-batch-mode"
- )
- );
- }
- } else {
- if (!allowChangeTaskGhostFlags(issue.value, task.value)) {
- errors.push(
- t("task.online-migration.error.x-status-task-is-not-editable", {
- status: task_StatusToJSON(task.value.status),
- })
- );
- }
}
return errors;
});
diff --git a/frontend/src/components/IssueV1/components/StatementSection/EditorView/EditorView.vue b/frontend/src/components/IssueV1/components/StatementSection/EditorView/EditorView.vue
index d6f3776c52..ad83e574fe 100644
--- a/frontend/src/components/IssueV1/components/StatementSection/EditorView/EditorView.vue
+++ b/frontend/src/components/IssueV1/components/StatementSection/EditorView/EditorView.vue
@@ -225,7 +225,6 @@ import {
specForTask,
createEmptyLocalSheet,
notifyNotEditableLegacyIssue,
- isDeploymentConfigChangeTaskV1,
isGroupingChangeTaskV1,
databaseEngineForSpec,
} from "@/components/IssueV1/logic";
@@ -448,30 +447,6 @@ const chooseUpdateStatementTarget = () => {
}),
};
- if (isDeploymentConfigChangeTaskV1(issue.value, selectedTask.value)) {
- dialog.info({
- title: t("issue.update-statement.self", { type: statementTitle.value }),
- content: t(
- "issue.update-statement.current-change-will-apply-to-all-tasks-in-batch-mode"
- ),
- type: "info",
- autoFocus: false,
- closable: false,
- maskClosable: false,
- closeOnEsc: false,
- showIcon: false,
- positiveText: t("common.confirm"),
- negativeText: t("common.cancel"),
- onPositiveClick: () => {
- d.resolve({ target: "ALL", tasks: targets.ALL });
- },
- onNegativeClick: () => {
- d.resolve({ target: "CANCELED", tasks: [] });
- },
- });
- return d.promise;
- }
-
if (targets.STAGE.length === 1 && targets.ALL.length === 1) {
d.resolve({ target: "TASK", tasks: targets.TASK });
return d.promise;
diff --git a/frontend/src/components/IssueV1/logic/initialize/create.ts b/frontend/src/components/IssueV1/logic/initialize/create.ts
index 78d3eefb2f..8fa79e69c0 100644
--- a/frontend/src/components/IssueV1/logic/initialize/create.ts
+++ b/frontend/src/components/IssueV1/logic/initialize/create.ts
@@ -220,24 +220,6 @@ export const buildStepsForDatabaseGroup = async (
return [step];
};
-export const buildStepsViaDeploymentConfig = async (
- params: CreateIssueParams,
- sheetUID: string
-) => {
- const { project } = params;
- const spec = await buildSpecForTarget(
- `${project.name}/deploymentConfigs/default`,
- params,
- sheetUID
- );
- maybeSetInitialSQLForSpec(spec, "", params);
- maybeSetInitialDatabaseConfigForSpec(spec, params);
- const step = Plan_Step.fromPartial({
- specs: [spec],
- });
- return [step];
-};
-
export const buildStepsViaChangelist = async (
databaseUIDList: string[],
changelistResourceName: string,
diff --git a/frontend/src/components/IssueV1/logic/plan.ts b/frontend/src/components/IssueV1/logic/plan.ts
index 21060b5cfc..01ef67aec4 100644
--- a/frontend/src/components/IssueV1/logic/plan.ts
+++ b/frontend/src/components/IssueV1/logic/plan.ts
@@ -3,7 +3,6 @@ import {
composeInstanceResourceForDatabase,
useDatabaseV1Store,
useDBGroupStore,
- useDeploymentConfigV1Store,
useEnvironmentV1Store,
useInstanceV1Store,
} from "@/store";
@@ -16,12 +15,7 @@ import {
} from "@/types";
import { Engine, State } from "@/types/proto/v1/common";
import type { Plan_Spec } from "@/types/proto/v1/plan_service";
-import {
- extractDatabaseResourceName,
- extractDatabaseGroupName,
- extractDeploymentConfigName,
- getPipelineFromDeploymentScheduleV1,
-} from "@/utils";
+import { extractDatabaseResourceName, extractDatabaseGroupName } from "@/utils";
export const databaseForSpec = (issue: ComposedIssue, spec: Plan_Spec) => {
const { createDatabaseConfig, changeDatabaseConfig, exportDataConfig } = spec;
@@ -123,24 +117,5 @@ export const databaseEngineForSpec = async (
}
}
}
- if (extractDeploymentConfigName(target)) {
- const deploymentConfig =
- await useDeploymentConfigV1Store().fetchDeploymentConfigByProjectName(
- project.name
- );
- if (deploymentConfig) {
- const databaseList = useDatabaseV1Store().databaseListByProject(
- project.name
- );
- const pipeline = getPipelineFromDeploymentScheduleV1(
- databaseList,
- deploymentConfig.schedule
- );
- const db = head(head(pipeline));
- if (db && db.uid !== String(UNKNOWN_ID)) {
- return db.instanceResource.engine;
- }
- }
- }
return Engine.ENGINE_UNSPECIFIED;
};
diff --git a/frontend/src/components/IssueV1/logic/rollout.ts b/frontend/src/components/IssueV1/logic/rollout.ts
index 103842e23f..0dcfe0fe67 100644
--- a/frontend/src/components/IssueV1/logic/rollout.ts
+++ b/frontend/src/components/IssueV1/logic/rollout.ts
@@ -10,7 +10,6 @@ import {
} from "@/types/proto/v1/rollout_service";
import {
extractDatabaseGroupName,
- extractDeploymentConfigName,
extractUserResourceName,
hasProjectPermissionV2,
} from "@/utils";
@@ -27,20 +26,6 @@ export const isGroupingChangeTaskV1 = (issue: ComposedIssue, task: Task) => {
return databaseGroup !== "";
};
-export const isDeploymentConfigChangeTaskV1 = (
- issue: ComposedIssue,
- task: Task
-) => {
- const spec = specForTask(issue.planEntity, task);
- if (!spec) {
- return false;
- }
- const deploymentConfig = extractDeploymentConfigName(
- spec.changeDatabaseConfig?.target ?? ""
- );
- return deploymentConfig !== "";
-};
-
export const allowUserToEditStatementForTask = (
issue: ComposedIssue,
task: Task,
diff --git a/frontend/src/components/Plan/components/HeaderSection/Actions/create/CreateButton.vue b/frontend/src/components/Plan/components/HeaderSection/Actions/create/CreateButton.vue
index 86844d492d..213a9f8b57 100644
--- a/frontend/src/components/Plan/components/HeaderSection/Actions/create/CreateButton.vue
+++ b/frontend/src/components/Plan/components/HeaderSection/Actions/create/CreateButton.vue
@@ -50,7 +50,6 @@ import { type Plan_ChangeDatabaseConfig } from "@/types/proto/v1/plan_service";
import type { Sheet } from "@/types/proto/v1/sheet_service";
import type { ComposedPlan } from "@/types/v1/issue/plan";
import {
- extractDeploymentConfigName,
extractProjectResourceName,
extractSheetUID,
flattenSpecList,
@@ -163,11 +162,6 @@ const createSheets = async () => {
const sheetNameMap = new Map<string, string>();
for (let i = 0; i < pendingCreateSheetList.length; i++) {
const sheet = pendingCreateSheetList[i];
- if (extractDeploymentConfigName(sheet.database)) {
- // If a sheet's target is a deploymentConfig, it should be unset
- // since it actually doesn't belongs to any exact database.
- sheet.database = "";
- }
sheet.title = plan.value.title;
const createdSheet = await sheetStore.createSheet(
plan.value.project,
diff --git a/frontend/src/components/Plan/components/StatementSection/EditorView/EditorView.vue b/frontend/src/components/Plan/components/StatementSection/EditorView/EditorView.vue
index 2f9ebba3f7..d0e3c2e318 100644
--- a/frontend/src/components/Plan/components/StatementSection/EditorView/EditorView.vue
+++ b/frontend/src/components/Plan/components/StatementSection/EditorView/EditorView.vue
@@ -205,7 +205,6 @@ import {
createEmptyLocalSheet,
databaseEngineForSpec,
databaseForSpec,
- isDeploymentConfigChangeSpec,
isGroupingChangeSpec,
sheetNameForSpec,
} from "@/components/Plan/logic";
@@ -380,30 +379,6 @@ const chooseUpdateStatementTarget = () => {
ALL: flattenSpecList(plan.value),
};
- if (isDeploymentConfigChangeSpec(selectedSpec.value)) {
- dialog.info({
- title: t("issue.update-statement.self", { type: statementTitle.value }),
- content: t(
- "issue.update-statement.current-change-will-apply-to-all-tasks-in-batch-mode"
- ),
- type: "info",
- autoFocus: false,
- closable: false,
- maskClosable: false,
- closeOnEsc: false,
- showIcon: false,
- positiveText: t("common.confirm"),
- negativeText: t("common.cancel"),
- onPositiveClick: () => {
- d.resolve({ target: "ALL", specs: targets.ALL });
- },
- onNegativeClick: () => {
- d.resolve({ target: "CANCELED", specs: [] });
- },
- });
- return d.promise;
- }
-
if (targets.STEP.length === 1 && targets.ALL.length === 1) {
d.resolve({ target: "SPEC", specs: targets.SPEC });
return d.promise;
diff --git a/frontend/src/components/Plan/logic/initialize/create.ts b/frontend/src/components/Plan/logic/initialize/create.ts
index 07d4a5cffc..1b8d66827b 100644
--- a/frontend/src/components/Plan/logic/initialize/create.ts
+++ b/frontend/src/components/Plan/logic/initialize/create.ts
@@ -188,24 +188,6 @@ export const buildStepsForDatabaseGroup = async (
return [step];
};
-export const buildStepsViaDeploymentConfig = async (
- params: CreatePlanParams,
- sheetUID: string
-) => {
- const { project } = params;
- const spec = await buildSpecForTarget(
- `${project.name}/deploymentConfigs/default`,
- params,
- sheetUID
- );
- maybeSetInitialSQLForSpec(spec, "", params);
- maybeSetInitialDatabaseConfigForSpec(spec, params);
- const step = Plan_Step.fromPartial({
- specs: [spec],
- });
- return [step];
-};
-
export const buildStepsViaChangelist = async (
databaseUIDList: string[],
changelistResourceName: string,
diff --git a/frontend/src/components/Plan/logic/plan.ts b/frontend/src/components/Plan/logic/plan.ts
index 2f07f8722a..bd94eaebe6 100644
--- a/frontend/src/components/Plan/logic/plan.ts
+++ b/frontend/src/components/Plan/logic/plan.ts
@@ -3,7 +3,6 @@ import {
composeInstanceResourceForDatabase,
useDatabaseV1Store,
useDBGroupStore,
- useDeploymentConfigV1Store,
useEnvironmentV1Store,
} from "@/store";
import {
@@ -15,12 +14,7 @@ import {
import { Engine, State } from "@/types/proto/v1/common";
import type { Plan_Spec } from "@/types/proto/v1/plan_service";
import type { ComposedPlan } from "@/types/v1/issue/plan";
-import {
- extractDatabaseResourceName,
- extractDatabaseGroupName,
- extractDeploymentConfigName,
- getPipelineFromDeploymentScheduleV1,
-} from "@/utils";
+import { extractDatabaseResourceName, extractDatabaseGroupName } from "@/utils";
export const databaseForSpec = (plan: ComposedPlan, spec: Plan_Spec) => {
// Now we only handle changeDatabaseConfig specs.
@@ -100,34 +94,8 @@ export const databaseEngineForSpec = async (
}
}
}
- if (extractDeploymentConfigName(target)) {
- const deploymentConfig =
- await useDeploymentConfigV1Store().fetchDeploymentConfigByProjectName(
- project.name
- );
- if (deploymentConfig) {
- const databaseList = useDatabaseV1Store().databaseListByProject(
- project.name
- );
- const pipeline = getPipelineFromDeploymentScheduleV1(
- databaseList,
- deploymentConfig.schedule
- );
- const db = head(head(pipeline));
- if (db && db.uid !== String(UNKNOWN_ID)) {
- return db.instanceResource.engine;
- }
- }
- }
- return Engine.ENGINE_UNSPECIFIED;
-};
-export const isDeploymentConfigChangeSpec = (spec?: Plan_Spec) => {
- if (!spec) return false;
- const deploymentConfig = extractDeploymentConfigName(
- spec.changeDatabaseConfig?.target ?? ""
- );
- return deploymentConfig !== "";
+ return Engine.ENGINE_UNSPECIFIED;
};
export const isDatabaseChangeSpec = (spec?: Plan_Spec) => {
diff --git a/frontend/src/types/proto/store/plan.ts b/frontend/src/types/proto/store/plan.ts
index 94f2ce47cd..4208bdc5b0 100644
--- a/frontend/src/types/proto/store/plan.ts
+++ b/frontend/src/types/proto/store/plan.ts
@@ -91,8 +91,6 @@ 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}/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/plan_service.ts b/frontend/src/types/proto/v1/plan_service.ts
index f9b258b292..f2067da391 100644
--- a/frontend/src/types/proto/v1/plan_service.ts
+++ b/frontend/src/types/proto/v1/plan_service.ts
@@ -222,8 +222,6 @@ 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}/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/openapi.yaml b/proto/gen/grpc-doc/openapi.yaml
index 090994ec65..6fc8ab99fb 100644
--- a/proto/gen/grpc-doc/openapi.yaml
+++ b/proto/gen/grpc-doc/openapi.yaml
@@ -11422,8 +11422,6 @@ components:
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:
type: string
description: |-
diff --git a/proto/gen/grpc-doc/store/README.md b/proto/gen/grpc-doc/store/README.md
index 53d2bd0d0c..97c4e8dcaa 100644
--- a/proto/gen/grpc-doc/store/README.md
+++ b/proto/gen/grpc-doc/store/README.md
@@ -2552,7 +2552,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}. Format: projects/{project}/deploymentConfigs/default. The plan should have a single step and single spec for the deployment configuration type. |
+| target | [string](#string) | | The resource name of the target. Format: instances/{instance-id}/databases/{database-name}. Format: projects/{project}/databaseGroups/{databaseGroup}. |
| 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/store/index.html b/proto/gen/grpc-doc/store/index.html
index f52082793b..be55d03e05 100644
--- a/proto/gen/grpc-doc/store/index.html
+++ b/proto/gen/grpc-doc/store/index.html
@@ -6704,9 +6704,7 @@ Format: users/{userUID}. </p></td>
<td></td>
<td><p>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. </p></td>
+Format: projects/{project}/databaseGroups/{databaseGroup}. </p></td>
</tr>
<tr>
diff --git a/proto/gen/grpc-doc/v1/README.md b/proto/gen/grpc-doc/v1/README.md
index f2f4e6738c..d0d1ececee 100644
--- a/proto/gen/grpc-doc/v1/README.md
+++ b/proto/gen/grpc-doc/v1/README.md
@@ -6114,7 +6114,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: 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. |
+| target | [string](#string) | | The resource name of the target. Format: instances/{instance-id}/databases/{database-name}. Format: projects/{project}/databaseGroups/{databaseGroup}. |
| 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/gen/grpc-doc/v1/index.html b/proto/gen/grpc-doc/v1/index.html
index 7a87a2e13a..e5ea659888 100644
--- a/proto/gen/grpc-doc/v1/index.html
+++ b/proto/gen/grpc-doc/v1/index.html
@@ -17536,9 +17536,7 @@ Keys are:
<td></td>
<td><p>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. </p></td>
+Format: projects/{project}/databaseGroups/{databaseGroup}. </p></td>
</tr>
<tr>
diff --git a/proto/generated-go/store/plan.pb.go b/proto/generated-go/store/plan.pb.go
index 3ab7351791..2aa148663b 100644
--- a/proto/generated-go/store/plan.pb.go
+++ b/proto/generated-go/store/plan.pb.go
@@ -468,8 +468,6 @@ 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}/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/plan_service.pb.go b/proto/generated-go/v1/plan_service.pb.go
index 1185de0947..c0617c15a5 100644
--- a/proto/generated-go/v1/plan_service.pb.go
+++ b/proto/generated-go/v1/plan_service.pb.go
@@ -1479,8 +1479,6 @@ 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}/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 ca1be301cd..6f2a418fb9 100644
--- a/proto/store/plan.proto
+++ b/proto/store/plan.proto
@@ -68,8 +68,6 @@ message PlanConfig {
// 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.
string target = 1;
// The resource name of the sheet.
// Format: projects/{project}/sheets/{sheet}
diff --git a/proto/v1/plan_service.proto b/proto/v1/plan_service.proto
index 0dd92dd7f6..13f3f62164 100644
--- a/proto/v1/plan_service.proto
+++ b/proto/v1/plan_service.proto
@@ -229,8 +229,6 @@ message Plan {
// 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.
string target = 1;
// The resource name of the sheet.
// Format: projects/{project}/sheets/{sheet}