fix(binjovi): insert repository grants idempotently #27
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/binjovi-bootstrap-grants"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The generation-v2 bootstrap exposed that Forgejo does not define a unique constraint for
(integ_id, repo_id). Replace the invalidON CONFLICTclause with an idempotentINSERT ... WHERE NOT EXISTS, and roll the immutable Job to generation v3. Add contracts for the SQL shape and one consistent bootstrap generation.Proof:
bash tests/binjovi.shandbash tests/check.shpass.