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

[BUG] Sequence values for id do not update if new entries manually added #570

Open
alexanderleegs opened this issue Nov 16, 2022 · 0 comments

Comments

@alexanderleegs
Copy link
Contributor

Currently, our implementation for new entries to the table automatically increments the stored sequence value of the id by 1. However, this causes an issue whenever we make manual additions to the db - i.e. adding a new Site manually with id 1 more than the current max will cause the next time a Site is added to have the same id, which causes a conflict.

We should look into automatically checking for the current max id before inserting new entries into our db tables, otherwise we will need to execute setval every time we make manual additions to our db.

@alexanderleegs alexanderleegs changed the title [BUG] Sequence values for id do not update if manually updated [BUG] Sequence values for id do not update if new entries manually added Nov 16, 2022
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

No branches or pull requests

1 participant