duplicate column name when container restarts
Closed this issue · 2 comments
helmutkemper commented
When the container restarts, the ALTER TABLE ...
command generates the error: duplicate column name: cluster_size
jorgebay commented
Nice findings @helmutkemper !
This issue is on master
but not on v0.4.1
, I'll add it to the upcoming v0.5.0
release, per our discussions, assign it to you :)
jorgebay commented
We could add a test to cover this issue here.
Something like:
Describe("Init()", func() {
It("should support running multiple times", func() {
client := NewClient(&testConfig{}).(*client)
err := client.Init()
Expect(client.Init()).NotTo(HaveOccurred())
// Running a second time
err = client.Init()
Expect(err).NotTo(HaveOccurred())
})
})