Skip to content

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

feat(PITR): add databaseName field for PITRContext (#1930)

h3n4l66b31a66a146
diff --git a/api/issue.go b/api/issue.go
index 907c242650..14c803bcd6 100644
--- a/api/issue.go
+++ b/api/issue.go
@@ -186,7 +186,9 @@ type UpdateSchemaGhostContext struct {
// PITRContext is the issue create context for performing a PITR in a database.
type PITRContext struct {
- DatabaseID int `json:"databaseId"`
+ DatabaseID int `json:"databaseId"`
+ CreateDatabaseCtx *CreateDatabaseContext `json:"createDatabaseContext"`
+
// After the PITR operations, the database will be recovered to the state at this time.
// Represented in UNIX timestamp in seconds.
PointInTimeTs int64 `json:"pointInTimeTs"`