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

Add support for altering sequences #113

Merged
merged 3 commits into from
Feb 19, 2024

Conversation

bplunkett-stripe
Copy link
Collaborator

Description

Add support for altering sequences

Motivation

Fixes #110

Testing

Tested with unit tests

@bplunkett-stripe bplunkett-stripe force-pushed the bplunkett/add-support-for-altering-sequences branch 2 times, most recently from 74454c6 to 1b2cde4 Compare February 16, 2024 22:32
@bplunkett-stripe bplunkett-stripe added the enhancement New feature or request label Feb 16, 2024
@bplunkett-stripe bplunkett-stripe force-pushed the bplunkett/add-support-for-altering-sequences branch from 1b2cde4 to 32100a9 Compare February 16, 2024 22:34
Copy link

@dandrew-stripe dandrew-stripe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@@ -640,6 +598,74 @@ var sequenceAcceptanceTests = []acceptanceTestCase{
diff.MigrationHazardTypeDeletesData,
},
},
{
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It might make sense to include some test cases with NO MINVALUE and NO MAXVALUE, particularly when there's a type change? I'm not really sure what the behavior should be in that scenario since the defaults would change...

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Solid points. Added some test cases for those scenarios.

@bplunkett-stripe bplunkett-stripe merged commit b71f162 into main Feb 19, 2024
6 checks passed
@bplunkett-stripe bplunkett-stripe deleted the bplunkett/add-support-for-altering-sequences branch February 19, 2024 23:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Unable to resolve sequence SQL
3 participants