Skip to content
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 #775

Merged
merged 3 commits into from
Mar 14, 2022
Merged

Conversation

jtzero
Copy link
Contributor

@jtzero jtzero commented Dec 1, 2021

Also a database/schema change to
https://github.com/chanzuckerberg/terraform-provider-snowflake/blob/db3350d5c9e0a641e80f6c2803c5364658d49584/pkg/resources/sequence.go#L44-L50
as that is what's happening behind the scenes, however it does copy over the current sequence value
https://github.com/chanzuckerberg/terraform-provider-snowflake/blob/b3506d7fd2f3d548a128693d94bc87714492dd83/pkg/resources/sequence.go#L221-L236

Test Plan

existing tests pass changing only the format to include both the database and schema

References

@jtzero jtzero changed the title Fix sequence import Fix: sequence import Dec 1, 2021
@jtzero jtzero force-pushed the fix-sequence-import branch 3 times, most recently from db3350d to 937058f Compare December 1, 2021 19:47
@alldoami
Copy link
Contributor

alldoami commented Dec 2, 2021

/ok-to-test sha=937058f

@github-actions
Copy link

github-actions bot commented Dec 2, 2021

Integration tests failure for 937058f

@jtzero
Copy link
Contributor Author

jtzero commented Dec 6, 2021

well that's a bummer, looks as though something got lost in a merge in the old repo, WIP

@jtzero jtzero force-pushed the fix-sequence-import branch 5 times, most recently from 296d39f to 907b57c Compare January 30, 2022 20:39
@jtzero
Copy link
Contributor Author

jtzero commented Jan 30, 2022

this should be ready to go now

@jtzero
Copy link
Contributor Author

jtzero commented Feb 3, 2022

@alldoami at your convenience

@jtzero jtzero force-pushed the fix-sequence-import branch 3 times, most recently from 116be17 to 480bb46 Compare February 8, 2022 15:18
@jtzero jtzero force-pushed the fix-sequence-import branch 2 times, most recently from 3bea04d to 6dcefa6 Compare February 25, 2022 15:38
@jtzero
Copy link
Contributor Author

jtzero commented Feb 25, 2022

no changes just rebasing to keep up to date

@jtzero jtzero force-pushed the fix-sequence-import branch 2 times, most recently from 84b2fdd to 63277b8 Compare March 10, 2022 20:42
@jtzero
Copy link
Contributor Author

jtzero commented Mar 10, 2022

no changes just rebasing to keep up to date

@alldoami
Copy link
Contributor

/ok-to-test sha=63277b8

@alldoami alldoami changed the title Fix: sequence import fix: sequence import Mar 11, 2022
@github-actions
Copy link

Integration tests success for 63277b8

@alldoami
Copy link
Contributor

Sweet! Could you update your branch and we can get this merged? Sorry I don't remember seeing updates on my side!

@jtzero jtzero force-pushed the fix-sequence-import branch 2 times, most recently from 63277b8 to 2ad4197 Compare March 12, 2022 02:08
@jtzero
Copy link
Contributor Author

jtzero commented Mar 12, 2022

np!

@alldoami
Copy link
Contributor

/ok-to-test sha=1708eab

@github-actions
Copy link

Integration tests success for 1708eab

@alldoami alldoami merged commit e728d2e into Snowflake-Labs:main Mar 14, 2022
@jtzero jtzero deleted the fix-sequence-import branch March 14, 2022 17:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cannot import the sequence
2 participants