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

feat : Foreign key feature in ToolJet database #9544

Merged
merged 163 commits into from May 8, 2024

Conversation

S-Abdul-Rahman
Copy link
Collaborator

@S-Abdul-Rahman S-Abdul-Rahman commented Apr 29, 2024

Foreign key feature

  1. Foreign keys are now supported by the ToolJet database.
  2. It is now possible to create a relationship between two tables.

A foreign key relation refers to linking one column or set of columns of the current table with one column or set of columns in an existing table provided the column/columns in the existing table have UNIQUE Constraint added to it explicitly.

Resolves

#9038
#9039
#9073
#9042
#9044

ganesh8056 and others added 30 commits March 19, 2024 15:25
…component in both create table and edit table
…hen primary key feature was added and table header content component refactored
ganesh8056 and others added 6 commits May 7, 2024 17:54
…umn name, when we open default drop down throws error in create column
* add wip error handling setup

* make errors thrown as TooljetDatabaseError

* fix types

* handle query manager errors

* make error logging better

* add comment

* remove redundant logger
Copy link

github-actions bot commented May 7, 2024

Copy link

github-actions bot commented May 8, 2024

akshaysasidrn and others added 4 commits May 8, 2024 11:27
* recreate pk constraints for existing tables for backward compatibility

* fix comment
* Removed create table and column info to add foreign key message

* Added tooltip when at least one column is not filled

Enable the add relation buttton when at least one column is present and filled otherwise disabled
@akshaysasidrn akshaysasidrn merged commit 609360e into release/database-1.1 May 8, 2024
7 checks passed
@akshaysasidrn akshaysasidrn deleted the feature/tjdb-create-foreignkey branch May 8, 2024 08:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants