-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix sequence import just for review, this wont be merged #3
Conversation
39c817e
to
13d8e39
Compare
13d8e39
to
eafd113
Compare
6950621
to
78e07ca
Compare
ef1c0fd
to
d8533bc
Compare
d8533bc
to
2962e6b
Compare
Integration tests failure for 2962e6b0083e322b5c0872ed169ca43ae64fc566 |
41050f7
to
656f775
Compare
pkg/resources/sequence.go
Outdated
@@ -40,11 +41,13 @@ var sequenceSchema = map[string]*schema.Schema{ | |||
Type: schema.TypeString, | |||
Required: true, | |||
Description: "The database in which to create the sequence. Don't use the | character.", | |||
ForceNew: true, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
these force news will cause the sequence count(next val) to reset when these are updated. is that expected/wanted?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes for a new database or schema it follows the same path that other tf-snowflake resources follow
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
actually it won't reset it, but it will rebuild it with the original value
nextValue, err := strconv.Atoi(sequence.NextValue.String)
if err != nil {
return err
}
sq.WithStart(nextValue)
db3350d
to
937058f
Compare
937058f
to
3163818
Compare
3163818
to
97f515a
Compare
97f515a
to
75fe0d8
Compare
this is what will be pushed upstream
the release for our purposes is here #4
first #2Test Plan
References