-
Notifications
You must be signed in to change notification settings - Fork 146
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
Fixes foreign key statement bugs in postgres manager #3256
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 1 Skipped Deployment
|
The latest Buf updates on your PR. Results from workflow Buf / buf (pull_request).
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #3256 +/- ##
==========================================
- Coverage 23.48% 23.42% -0.07%
==========================================
Files 387 387
Lines 44474 44418 -56
==========================================
- Hits 10445 10404 -41
+ Misses 32970 32961 -9
+ Partials 1059 1053 -6 ☔ View full report in Codecov by Sentry. |
Benchstat Geomean Results0.95% sec/op, -0.04% B/op, 0.00% allocs/op Benchstat results
|
Updates postgres manager to create foreign key statements instead of using constraint definition from the database. These definitions are missing the schema in the definition causing problems.
Separates SQL to get foreign key statements and non foreign key statements. This makes it clear which columns are for which. Reduces complexity.
Updates non foreign key statements SQL to use higher level tables. Makes it easier to understand the query. Was unable to use higher level tables for the foreign key statements SQL because FK constraint names are not unique and caused duplicate issues with the reference columns.
Deprecates dead code. The first version of init statements. which were full create statements that included constraints.