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

Allow primary keys to be foreign key #9331

Merged
merged 1 commit into from
Jan 13, 2023

Conversation

melohagan
Copy link
Collaborator

Description

As discussed with @mike12345567 I removed the foreign key relationship filter to allow primary keys to act as foreign keys.
This is to satisfy a fairly common use-case, as per this docs tutorial I'm working on: https://docs.budibase.com/docs/mysql-mariadb

Addresses:

Screenshots

employees table
Screenshot 2023-01-12 at 17 08 21

titles table
Screenshot 2023-01-12 at 17 08 44

Define existing relationship - can now use the emp_no column, even though it is primary
Screenshot 2023-01-12 at 17 09 19

Result
Screenshot 2023-01-12 at 17 10 28

@melohagan melohagan merged commit 8abacca into develop Jan 13, 2023
@github-actions github-actions bot locked and limited conversation to collaborators Jan 13, 2023
@melohagan melohagan deleted the fix/support-primary-keys-in-relationships branch January 13, 2023 11:23
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants