Skip to content

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

chore: update change type to DML for export data specs (#17204)

boojackff757f3705d5
diff --git a/frontend/src/components/Plan/components/SQLCheckSection/common.ts b/frontend/src/components/Plan/components/SQLCheckSection/common.ts
index f17f728bf4..f7569349b9 100644
--- a/frontend/src/components/Plan/components/SQLCheckSection/common.ts
+++ b/frontend/src/components/Plan/components/SQLCheckSection/common.ts
@@ -5,6 +5,10 @@ import { Release_File_ChangeType } from "@/types/proto-es/v1/release_service_pb"
export const getSpecChangeType = (
spec?: Plan_Spec
): Release_File_ChangeType => {
+ // For export data config, we treat it as DML.
+ if (spec?.config.case === "exportDataConfig") {
+ return Release_File_ChangeType.DML;
+ }
const changeDatabaseConfig =
spec?.config?.case === "changeDatabaseConfig"
? spec.config.value