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

[rel-db] Use postgres sequence for sequential_number fields #219

Open
peb-adr opened this issue Feb 19, 2025 · 0 comments
Open

[rel-db] Use postgres sequence for sequential_number fields #219

peb-adr opened this issue Feb 19, 2025 · 0 comments

Comments

@peb-adr
Copy link
Member

peb-adr commented Feb 19, 2025

Several collections have sequential_number fields.
These are currently incremented and set in the backend code.

It would be nice to alter the SQL schema such that these values are instead generated/incremented on DB level, most likely using sequences.

We have to ensure that these sequences are initialized correctly (i.e. max(<collection>.sequential_number)). This would be part of the corresponding migration in the backend.

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