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

Validate check name is unique #429

Merged
merged 2 commits into from
Oct 23, 2024

Conversation

ryanslade
Copy link
Contributor

Validate that check name is unique before starting the migration.

@ryanslade ryanslade requested a review from exekias October 23, 2024 10:24
@@ -542,13 +542,13 @@ func (s *State) Start(ctx context.Context, schemaname string, migration *migrati
return nil, err
}

var schema schema.Schema
err = json.Unmarshal([]byte(rawSchema), &schema)
var unmarshalledSchema schema.Schema
Copy link
Member

Choose a reason for hiding this comment

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

this change doesn't seem related to the pr?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Just a small rename to stop a warning about shadowing a package name. I felt it was too small to include in a separate PR.

@ryanslade ryanslade merged commit 0b5646d into main Oct 23, 2024
52 checks passed
@ryanslade ryanslade deleted the rs/validate-check-constraint-name-unique branch October 23, 2024 12:00
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.

2 participants