-
Notifications
You must be signed in to change notification settings - Fork 75
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
MigrationFromOTRS: explain why some columns are shortened to 190 chars #542
Comments
The explanation is this, if I understand correctly: "# Check if we need to cut the string, cause utf8mb4 only needs 191 chars." (Though "needs" is not the right word.) I forgot for which column types this exactly applies and when, but as we switched from utf8 to utf8mb4, the maximum size in some places has shrunken down from 255 to 191 (is it only CHAR?). |
@StefanRother-OTOBO explained where the 190 chars come from:
This explanation should be added as code comment as well. See also https://dev.mysql.com/doc/refman/5.6/en/innodb-limits.html and https://dev.mysql.com/doc/refman/5.7/en/innodb-limits.html |
Try to make the logic more efficient, do less work
Just to reduce the diffs when merging
Issue #542 innodb max key length
The code comments have been enhanced. Closing this issue. |
In Kernel/System/MigrateFromOTRS/CloneDB/Driver/Base.pm there is the following dubious code:
It is not obvious where the constant value of 190 characters is coming from. The suspicion is that either this value should be depend on the actual database table. At least it should be properly explained.
The text was updated successfully, but these errors were encountered: