Skip to content

Commit 40ca8bf

Browse files
authored
Merge pull request #277 from planetscale/major-version-param
Add `major_version` to create database and create branch
2 parents 4021104 + 97bf2b6 commit 40ca8bf

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

planetscale/databases.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ type CreateDatabaseRequest struct {
2424
ClusterSize string `json:"cluster_size,omitempty"`
2525
Kind DatabaseEngine `json:"kind,omitempty"`
2626
Replicas *int `json:"replicas,omitempty"`
27+
MajorVersion string `json:"major_version,omitempty"`
2728
}
2829

2930
// DatabaseRequest encapsulates the request for getting a single database.

planetscale/postgres_branches.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ type CreatePostgresBranchRequest struct {
4242
ParentBranch string `json:"parent_branch"`
4343
BackupID string `json:"backup_id,omitempty"`
4444
ClusterName string `json:"cluster_name,omitempty"`
45+
MajorVersion string `json:"major_version,omitempty"`
4546
}
4647

4748
// ListPostgresBranchesRequest encapsulates the request to list Postgres branches for a database.

0 commit comments

Comments
 (0)