Skip to content

Candidate CandID Patch Fix - #11168

Open
lapadulamichael wants to merge 2 commits into
aces:27.0-releasefrom
lapadulamichael:2026_08_11_Fix_out_of_range_candid
Open

lapadulamichael wants to merge 2 commits into
aces:27.0-releasefrom
lapadulamichael:2026_08_11_Fix_out_of_range_candid

Conversation

@lapadulamichael

@lapadulamichael lapadulamichael commented Aug 11, 2026

Copy link
Copy Markdown
Contributor

Brief summary of changes

This PR fixes candidate.CandID still being a signed int after running the upgrade patch. This was causing newly generated CandIDs to sometimes be out of range.

This is because the change to candidate.CandID's type being int(10) unsigned was done only in the schema and not included in the SQL/Archive/27.0/2025-02-05-Change-Candid-FK-To-ID.sql patch.

I added this to the archived patch and the release patch :

-- CandIDGenerator uses length of 10 unsigned int, this modifies table to avoid out of range generations
ALTER TABLE candidate MODIFY CandID INT(10) unsigned NOT NULL;

@github-actions github-actions Bot added the Language: SQL PR or issue that update SQL code label Aug 11, 2026
@lapadulamichael lapadulamichael added 27.0.0 - Bugs Bugs Found in LORIS 27 testing Release: SQL patch PR that contains an SQL patch to apply labels Aug 11, 2026
@github-actions github-actions Bot added Language: PHP PR or issue that update PHP code Module: timepoint_list PR or issue related to the timepoint_list module labels Aug 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

27.0.0 - Bugs Bugs Found in LORIS 27 testing Language: PHP PR or issue that update PHP code Language: SQL PR or issue that update SQL code Module: timepoint_list PR or issue related to the timepoint_list module Release: SQL patch PR that contains an SQL patch to apply

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants