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

TJDB: As a user I should be able to edit the Primary key for a table #9036

Closed
akshaysasidrn opened this issue Mar 8, 2024 · 0 comments
Closed

Comments

@akshaysasidrn
Copy link
Collaborator

akshaysasidrn commented Mar 8, 2024

Is your proposal related to a problem?

The user should be able to update the Primary key for a table.

Describe the solution you'd like

PRD: link
ADR: link
Design: link

  • From the edit table drawer user should be able to change the PK checkboxes and save changes to the table.
  • Upon clicking save, a modal should open which indicate the PK changes
  • On save the success/error message should be shown as a toast

Note: Editing PK can be from single to composite or vice-versa

Constraints to note:

Constraints to note:

  • Not-Null: Primary Key Fields by default become NOT NULL
  • Uniqueness: Upon data entry, Primary Key Fields have to be checked for uniqueness
  • Data Type Compatibility: Primary Key Fields must have compatible data types
  • Immutable Data Types: Once set, primary key values can not be edited
  • Composite Key Limitation: Data length for composite key will depend upon underlying data length of fields selected to be primary key

image

image

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants