Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
feat: add database name in restore task field (#2214)
h3n4l601e6b378ae7
diff --git a/api/task.go b/api/task.goindex 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"`