-
Notifications
You must be signed in to change notification settings - Fork 186
[SQL] Refactor FK CandID int(6) to CandidateID int(10) (candidate.ID PK) #9556
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
Merged
driusan
merged 18 commits into
aces:main
from
jeffersoncasimir:2025_02_05_change_candidate_fk
Feb 12, 2025
Merged
[SQL] Refactor FK CandID int(6) to CandidateID int(10) (candidate.ID PK) #9556
driusan
merged 18 commits into
aces:main
from
jeffersoncasimir:2025_02_05_change_candidate_fk
Feb 12, 2025
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
driusan
requested changes
Feb 12, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Typo in patch
This was referenced Feb 13, 2025
This was referenced Feb 13, 2025
driusan
pushed a commit
that referenced
this pull request
Feb 17, 2025
Merged
racostas
pushed a commit
to racostas/Loris
that referenced
this pull request
Mar 12, 2025
…D int(10) (candidate.ID PK) aces#9556
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Closes #8827
This PR refactors the DB schema to rename every table except
candidate
'sCandID
field toCandidateID
. This field now instead referencescandidate
.ID
, which is now the PK of the table and aint(10)
instead ofint(6)
previously.candidate
'sCandID
field has also been upgraded to anunsigned int(10)
.There is a patch that sets all the values of
CandidateID
of all tables to instead become the correspondingcandidate
.ID
.The back-end of most modules that used a table with a
CandID
were refactored to usecandidate
.CandID
and to insteadJOIN ON candidate.ID = table_with_CandID_previously.CandidateID
.Left to refactor: