8000 Add `onUpdate` and `matchType` to the output of `analyze`/`read_schema` by kvch · Pull Request #654 · xataio/pgroll · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Add onUpdate and matchType to the output of analyze/read_schema #654

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 8 commits into from
Feb 4, 2025

Conversation

kvch
Copy link
Contributor
@kvch kvch commented Feb 4, 2025

From now on matchType and onUpdate is exposed in the list of foreign keys:

Example output for fk_sellers FK:

 "foreignKeys": {
   "fk_sellers": {
     "name": "fk_sellers",
     "columns": [
       "sellers_name",
       "sellers_zip"
     ],
     "referencedTable": "sellers",
     "referencedColumns": [
       "name",
       "zip"
     ],
     "onDelete": "NO ACTION",
     "onUpdate": "NO ACTION",
     "matchType": "SIMPLE"
   }
 },

@kvch kvch marked this pull request as ready for review February 4, 2025 12:36
@kvch kvch marked this pull request as draft February 4, 2025 12:36
@kvch kvch marked this pull request as ready for review February 4, 2025 12:38
@kvch kvch enabled auto-merge (squash) February 4, 2025 13:08
@kvch kvch requested a review from andrew-farries February 4, 2025 15:25
@kvch kvch merged commit bbdb2f8 into xataio:main Feb 4, 2025
28 checks passed
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
0