Skip to content

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

feat: update task types to DML (#17503)

p0nycd5a2b6ac612
diff --git a/backend/api/v1/plan_service.go b/backend/api/v1/plan_service.go
index 9dff97861f..55d67d1170 100644
--- a/backend/api/v1/plan_service.go
+++ b/backend/api/v1/plan_service.go
@@ -522,6 +522,7 @@ func (s *PlanService) UpdatePlan(ctx context.Context, request *connect.Request[v
taskTypes := []storepb.Task_Type{
storepb.Task_DATABASE_SCHEMA_UPDATE,
storepb.Task_DATABASE_SCHEMA_UPDATE_GHOST,
+ storepb.Task_DATABASE_DATA_UPDATE,
}
if !slices.Contains(taskTypes, newTaskType) || !slices.Contains(taskTypes, task.Type) {
return nil, connect.NewError(connect.CodeInvalidArgument, errors.Errorf("task types in %v are allowed to updated, and they are allowed to be changed to %v", taskTypes, taskTypes))