Skip to content

Construct version schema name in Roll.StartDDLOperations without DB lookup #912

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

Merged
merged 1 commit into from
Jun 17, 2025

Conversation

andrew-farries
Copy link
Collaborator

Change how the Roll.StartDDLOperations constructs the name of the version schema that will be created by the migration so that it doesn't require a lookup in the pgroll.migrations table.

There is no need to look it up in the state db; it's determied by theVersionSchema of the migration being started and the schema name it's being applied to.

Related to #872

Don't need to look it up in the state db; it's determied by the
`VersionSchema` of the migration being started and the schema name it's
being applied to.
@github-actions github-actions bot temporarily deployed to Docs Preview June 16, 2025 14:42 Inactive
Copy link

Merging this branch will increase overall coverage

Impacted Packages Coverage Δ 🤖
github.com/xataio/pgroll/pkg/roll 79.87% (+0.12%) 👍

Coverage by file

Changed files (no unit tests)

Changed File Coverage Δ Total Covered Missed 🤖
github.com/xataio/pgroll/pkg/roll/execute.go 79.64% (+0.23%) 167 (-3) 133 (-2) 34 (-1) 👍

Please note that the "Total", "Covered", and "Missed" counts above refer to code statements instead of lines of code. The value in brackets refers to the test coverage of that file in the old version of the code.

@andrew-farries andrew-farries marked this pull request as ready for review June 16, 2025 14:44
@andrew-farries andrew-farries requested a review from kvch June 16, 2025 14:44
@andrew-farries andrew-farries merged commit 542166f into main Jun 17, 2025
30 checks passed
@andrew-farries andrew-farries deleted the construct-next-version-schema-name branch June 17, 2025 08:09
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