Uploaded image for project: 'Crucible'
  1. Crucible
  2. CRUC-6886

Determine a migration plan to migrate users on MySQL from utf8 to utf8mb4

XMLWordPrintable

    • Icon: Suggestion Suggestion
    • Resolution: Fixed
    • 4.7.0
    • None
    • None
    • Our product teams collect and evaluate feedback from a number of different sources. To learn more about how we use customer feedback in the planning process, check out our new feature policy.

      The 'utf8' encoding in MySQL actually only supports utf8 code points between one and 3 bytes. This means that several excellent and popular symbols, such as 👓,😦, and 🚜 cannot be used. MySQL 5.5 introduced utf8mb4 character set. Note that is a utf8mb4 superset of utf8 so migrating shouldn't lose anything.

      Tasks:

      1. Work out a migration plan to automatically migrate Crucible instances to the utf8mb4 encoding which supports full unicode set. Note it's not just 'ALTER TABLE' but also 'ALTER DATABASE'.

      2. Update com.cenqua.crucible.hibernate.DBType.MYSQL#isUTF8AndCaseSensitive - we shall probably check 'utf8'/'utf8mb4' character encoding plus 'utf8_bin/utf8mb4_col' collation.

      References:

              spacuk Sebastian Pacuk (Inactive)
              rstephens Richard Stephens (Inactive)
              Votes:
              2 Vote for this issue
              Watchers:
              10 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - Not Specified
                  Not Specified
                  Logged:
                  Time Spent - 1.25h
                  1.25h