Skip to content

Comments

Prevent unnecessary precision change in upgrade script#3044

Open
weilai-irl wants to merge 1 commit intoMOODLE_501_STABLEfrom
wip-126138-m501
Open

Prevent unnecessary precision change in upgrade script#3044
weilai-irl wants to merge 1 commit intoMOODLE_501_STABLEfrom
wip-126138-m501

Conversation

@weilai-irl
Copy link
Collaborator

No description provided.

Copilot AI review requested due to automatic review settings February 19, 2026 17:02
@weilai-irl weilai-irl self-assigned this Feb 19, 2026
@weilai-irl weilai-irl added this to the 2026-01 milestone Feb 19, 2026
@weilai-irl weilai-irl linked an issue Feb 19, 2026 that may be closed by this pull request
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Updates the local/o365 plugin upgrade step to avoid running change_field_precision() when the target column lengths already match the desired schema, and to work around indexed-field precision changes.

Changes:

  • Add column-length checks via $DB->get_columns() to skip unnecessary precision changes.
  • Drop the objectid index before altering objectid precision on local_o365_groups_cache and local_o365_teams_cache.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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.

Errors when upgrading to Moodle 4.5

1 participant