Skip to content

New DBAction: CreateFKConstraintAction #843

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
May 19, 2025

Conversation

kvch
Copy link
Contributor

@kvch kvch commented May 19, 2025

This PR adds a new DBAction for creating foreign key constraints. It is used in op_set_fk and op_create_constraint.

This refactoring has uncovered the lack of support of deferrable constraints on the table level. In a follow-up PR I will add
the two missing options deferrable and initially_deferred to the create_constraint.

Related to #742

@github-actions github-actions bot temporarily deployed to Docs Preview May 19, 2025 12:32 Inactive
@kvch kvch force-pushed the refactoring-dbaction-fk-constraints branch from 95d7f41 to eb0fa7e Compare May 19, 2025 12:36
@github-actions github-actions bot temporarily deployed to Docs Preview May 19, 2025 12:36 Inactive
@kvch kvch force-pushed the refactoring-dbaction-fk-constraints branch from eb0fa7e to 3e441c6 Compare May 19, 2025 12:40
@github-actions github-actions bot temporarily deployed to Docs Preview May 19, 2025 12:40 Inactive
@kvch kvch force-pushed the refactoring-dbaction-fk-constraints branch from 3e441c6 to b6109de Compare May 19, 2025 12:44
@github-actions github-actions bot temporarily deployed to Docs Preview May 19, 2025 12:45 Inactive
@kvch kvch force-pushed the refactoring-dbaction-fk-constraints branch from b6109de to cc7b61e Compare May 19, 2025 12:48
@github-actions github-actions bot temporarily deployed to Docs Preview May 19, 2025 12:48 Inactive
@kvch kvch requested a review from andrew-farries May 19, 2025 12:53
@kvch kvch force-pushed the refactoring-dbaction-fk-constraints branch from cc7b61e to 807ee21 Compare May 19, 2025 14:04
@github-actions github-actions bot temporarily deployed to Docs Preview May 19, 2025 14:04 Inactive
@kvch kvch enabled auto-merge (squash) May 19, 2025 14:05
@kvch kvch merged commit 529d721 into xataio:main May 19, 2025
29 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