fix: add warning if DB primary key configuration is out-of-sync with struct #60

Merged
mfenniak merged 1 commit from mfenniak/forgejo-xorm:warn-pk-out-of-sync into main 2026-01-18 03:37:17 +00:00
Owner

Unexpected configuration identified by https://codeberg.org/forgejo/forgejo/issues/10848 was not indicated by any sync warnings previously.

Unexpected configuration identified by https://codeberg.org/forgejo/forgejo/issues/10848 was not indicated by any sync warnings previously.
fix: add warning if DB primary key configuration is out-of-sync with struct
All checks were successful
test / unit test (pull_request) Successful in 50s
test / test mysql mariadb:10.6 (pull_request) Successful in 3m15s
test / test mysql mariadb:11.4 (pull_request) Successful in 3m17s
test / test mysql mariadb:11.8 (pull_request) Successful in 3m19s
test / test mysql mariadb:10.11 (pull_request) Successful in 3m21s
test / test mysql mysql:8.0 (pull_request) Successful in 3m22s
test / test mysql mysql:8.4 (pull_request) Successful in 3m19s
test / test sqlite (pull_request) Successful in 2m7s
test / test postgres postgres:13 (pull_request) Successful in 2m28s
test / test postgres postgres:14 (pull_request) Successful in 2m28s
test / test postgres postgres:16 (pull_request) Successful in 2m26s
test / test postgres postgres:15 (pull_request) Successful in 2m35s
test / test postgres postgres:17 (pull_request) Successful in 2m30s
test / generate coverage report (pull_request) Successful in 29s
cascade / debug (pull_request_target) Has been skipped
cascade / forgejo (pull_request_target) Successful in 40s
5b69aa0e9a
viceice approved these changes 2026-01-16 05:59:07 +00:00
Gusted approved these changes 2026-01-16 07:29:32 +00:00
mfenniak deleted branch warn-pk-out-of-sync 2026-01-18 03:37:17 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
3 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
xorm/xorm!60
No description provided.