+
Skip to content

Conversation

jeffersoncasimir
Copy link
Contributor

@jeffersoncasimir jeffersoncasimir commented Feb 11, 2025

Closes #8827

This PR refactors the DB schema to rename every table except candidate's CandID field to CandidateID. This field now instead references candidate.ID, which is now the PK of the table and a int(10) instead of int(6) previously. candidate's CandID field has also been upgraded to an unsigned int(10).

There is a patch that sets all the values of CandidateID of all tables to instead become the corresponding candidate.ID.

The back-end of most modules that used a table with a CandID were refactored to use candidate.CandID and to instead JOIN ON candidate.ID = table_with_CandID_previously.CandidateID.

Left to refactor:

  • Remainder of failing tests
  • Some tools
  • Documentation

@jeffersoncasimir jeffersoncasimir added this to the 27.0.0 milestone Feb 11, 2025
Copy link
Collaborator

@driusan driusan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Typo in patch

@driusan driusan merged commit af6b5e0 into aces:main Feb 12, 2025
19 checks passed
driusan pushed a commit that referenced this pull request Feb 17, 2025
Closes #9564 .

This PR addresses the forgotten `NULL`ability annotations, found by
Loris-MRI integration tests.

`NULL`ability should now be identical to how it was prior to the last
patch in #9556
@driusan driusan mentioned this pull request Feb 17, 2025
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

Successfully merging this pull request may close these issues.

CandID should not be an int(6)

2 participants

点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载