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 updating of a primary key #1575

Open
eemmiillyy opened this issue Sep 12, 2024 · 0 comments
Open

Allow updating of a primary key #1575

eemmiillyy opened this issue Sep 12, 2024 · 0 comments
Assignees
Labels
bug Something isn't working needs-triage

Comments

@eemmiillyy
Copy link
Contributor

eemmiillyy commented Sep 12, 2024

Describe the bug

Related: https://github.com/xataio/frontend-next/issues/3761

Currently it is not possible to update the primary key/xata_id on next branch, however it is possible via SQL. We should change our API to allow this.

Potential ways to fix:

  1. We could send a new flag/param to control whether the primary key value should removed from update payload if supplied.
  2. We could simply stop removing the value when the call is sent with the first param as the primary key and the second param as an object that contains a new value for this field
  3. ?

To Reproduce

Expected behavior

Software version

Additional context

@eemmiillyy eemmiillyy added the bug Something isn't working label Sep 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs-triage
Projects
None yet
Development

No branches or pull requests

2 participants