[Rt-commit] rt branch, 5.0/convert-fulltextsearch-utf8mb4, created. rt-5.0.0beta1-44-g881e05c9e7

Aaron Trevena ast at bestpractical.com
Tue Jun 30 14:23:51 EDT 2020


The branch, 5.0/convert-fulltextsearch-utf8mb4 has been created
        at  881e05c9e72dc5115e715cba489a91e359a39bb7 (commit)

- Log -----------------------------------------------------------------
commit 881e05c9e72dc5115e715cba489a91e359a39bb7
Author: Aaron Trevena <ast at bestpractical.com>
Date:   Tue Jun 30 19:19:00 2020 +0100

    Update fulltextsearch table to new utf8mb4 charset
    
    Add table encoding change for fulltextsearch table in
    upgrade script for 4.5.7

diff --git a/etc/upgrade/4.5.8/content b/etc/upgrade/4.5.8/content
index 19ddfc9133..33275050ed 100644
--- a/etc/upgrade/4.5.8/content
+++ b/etc/upgrade/4.5.8/content
@@ -40,7 +40,7 @@ sub get_pg_ddl_query {
 
 sub get_mysql_ddl_query {
     my ($table) = @_;
-    return "ALTER TABLE $table MODIFY id BIGINT NOT NULL AUTO_INCREMENT;";
+    return "ALTER TABLE $table MODIFY id BIGINT NOT NULL AUTO_INCREMENT, CONVERT TO CHARACTER SET utf8mb4;";
 }
 
 sub table_exists {

-----------------------------------------------------------------------


More information about the rt-commit mailing list