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

Run each migration in its own transaction #8371

Merged
merged 4 commits into from
Jul 16, 2024
Merged

Conversation

tristan957
Copy link
Member

@tristan957 tristan957 commented Jul 12, 2024

Previously, every migration was run in the same transaction. This is preparatory work for fixing CVE-2024-4317.

I've also renamed the migration files to match their actual migration ID number.

@tristan957 tristan957 requested review from a team as code owners July 12, 2024 18:41
@tristan957 tristan957 force-pushed the tristan957/migrations branch 4 times, most recently from 0f82081 to 30b4e7c Compare July 12, 2024 19:25
Copy link

github-actions bot commented Jul 12, 2024

3114 tests run: 2993 passed, 0 failed, 121 skipped (full report)


Code coverage* (full report)

  • functions: 32.7% (6984 of 21377 functions)
  • lines: 50.0% (54992 of 109882 lines)

* collected from Rust tests only


The comment gets automatically updated with the latest test results
f9b99e2 at 2024-07-16T17:01:56.438Z :recycle:

@tristan957 tristan957 force-pushed the tristan957/migrations branch 2 times, most recently from f9f2525 to ca7002c Compare July 15, 2024 16:33
compute_tools/src/migration.rs Show resolved Hide resolved
This matches what we put into the neon_migration.migration_id table.
Previously, every migration was run in the same transaction. This
is preparatory work for fixing CVE-2024-4317.
@tristan957 tristan957 merged commit 7cf59ae into main Jul 16, 2024
74 checks passed
@tristan957 tristan957 deleted the tristan957/migrations branch July 16, 2024 17:12
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.

None yet

3 participants