Skip to content

Course: Change col target_group to type text in table crs_settings - #12021

Merged
lscharmer merged 1 commit into
ILIAS-eLearning:trunkfrom
lscharmer:course-varchar2text
Oct 26, 2026
Merged

lscharmer merged 1 commit into
ILIAS-eLearning:trunkfrom
lscharmer:course-varchar2text

Conversation

@lscharmer

Copy link
Copy Markdown
Contributor

This PR fixes a problem in the event table when migrating from utf8mb3 to utf8mb4.

Currently the table cannot be converted to utf8mb4 because the row size would be to large:

Error: query: Row size too large. The maximum row size for the used table type, not counting BLOBs, is 65535. This includes storage overhead, check the manual. You have to change some columns to TEXT or BLOBs
  SQLSTATE: 42000

With utf8mb4 4 bytes per char instead 3 are reserved, so each (var-)char field length is multiplied by 4 instead 3.

It is enough to change one varchar(4000) field to type text to fit into the row size limit.

This PR is in preparation for an upcoming PR to change the Database charset & collation from utf8mb3 to utf8mb4.

@lscharmer lscharmer added improvement php Pull requests that update Php code labels Sep 2, 2026
@alex40724
alex40724 requested review from schmitz-ilias and removed request for smeyer-ilias September 18, 2026 12:17
@alex40724 alex40724 assigned lscharmer and unassigned alex40724 and smeyer-ilias Sep 18, 2026
@alex40724

Copy link
Copy Markdown
Member

@schmitz-ilias Can you ask Stefan for the ok here. For me this looks good.

@schmitz-ilias schmitz-ilias left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I've had a look with @smeyer-ilias, and the changes look good to us. Thanks for pushing the move to mb4 @lscharmer!

@lscharmer

Copy link
Copy Markdown
Contributor Author

I've had a look with @smeyer-ilias, and the changes look good to us. Thanks for pushing the move to mb4 @lscharmer!

Hi @schmitz-ilias, @smeyer-ilias & @alex40724,
thanks for the review.
It would be great if you could also review PR: #12020 as this is the same change just for another component / table. Then utf8mb4 support (#12144) can be included in release 12.

Thanks a lot & best
Lukas

@lscharmer
lscharmer merged commit 6b2332b into ILIAS-eLearning:trunk Oct 26, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

improvement php Pull requests that update Php code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants