Skip to content

Commit

Permalink
add pg17 (#466)
Browse files Browse the repository at this point in the history
* add pg17

* fix test
  • Loading branch information
Reasonable-Solutions authored Dec 4, 2024
1 parent e8c744e commit 271ec19
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions pkg/postgres/migrate/ui/ui.go
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ var typeToVersion = map[string]int{
"POSTGRES_14": 14,
"POSTGRES_15": 15,
"POSTGRES_16": 16,
"POSTGRES_17": 17,
}

var AskForType = askForType
Expand Down
5 changes: 3 additions & 2 deletions pkg/postgres/migrate/ui/ui_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,14 +102,15 @@ var _ = Describe("Ui", func() {
)

When("source version is POSTGRES_14", func() {
It("only lists versions 15 and 16", func() {
It("only lists versions 15 and 16 and 17", func() {
f := &fakeTextSelector{selected: "POSTGRES_15"}
ui.TextSelector = f
ui.AskForType("POSTGRES_14")()
Expect(f.options).To(ContainElement("Same as source (POSTGRES_14)"))
Expect(f.options).To(ContainElement("POSTGRES_15"))
Expect(f.options).To(ContainElement("POSTGRES_16"))
Expect(f.options).To(HaveLen(3))
Expect(f.options).To(ContainElement("POSTGRES_17"))
Expect(f.options).To(HaveLen(4))
Expect(f.options).ToNot(ContainElement("POSTGRES_13"))
})
})
Expand Down

0 comments on commit 271ec19

Please sign in to comment.