Skip to content

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

feat: add database name in restore task field (#2214)

h3n4l601e6b378ae7
diff --git a/api/task.go b/api/task.go
index 15254ef15c..a93f9c3949 100644
--- a/api/task.go
+++ b/api/task.go
@@ -69,6 +69,10 @@ type TaskDatabasePITRRestorePayload struct {
// The project owning the database.
ProjectID int `json:"projectId,omitempty"`
+ // DatabaseName is the target database name.
+ // It is nil for the case of in-place PITR.
+ DatabaseName *string `json:"databaseName,omitempty"`
+
// TargetInstanceId must be within the same environment as the instance of the original database.
// Only used when doing PITR to a new database.
TargetInstanceID *int `json:"targetInstanceId,omitempty"`