diff --git a/changelog.d/20240614_180451_danyal.faheem_upgrade_mysql_utf8mb4.md b/changelog.d/20240614_180451_danyal.faheem_upgrade_mysql_utf8mb4.md new file mode 100644 index 0000000000..ef8e266fdc --- /dev/null +++ b/changelog.d/20240614_180451_danyal.faheem_upgrade_mysql_utf8mb4.md @@ -0,0 +1 @@ +- 💥[Feature] Upgrade default charset and collation of mysql to utf8mb4 and utf8mb4_unicode_ci respectively (by @Danyal-Faheem) \ No newline at end of file diff --git a/tutor/templates/apps/openedx/config/partials/auth.yml b/tutor/templates/apps/openedx/config/partials/auth.yml index 74d46d8b7e..56f2a8b94c 100644 --- a/tutor/templates/apps/openedx/config/partials/auth.yml +++ b/tutor/templates/apps/openedx/config/partials/auth.yml @@ -18,7 +18,7 @@ DATABASES: OPTIONS: init_command: "SET sql_mode='STRICT_TRANS_TABLES'" {%- if RUN_MYSQL %} - charset: "utf8mb3" + charset: "utf8mb4" {%- endif %} EMAIL_HOST_USER: "{{ SMTP_USERNAME }}" EMAIL_HOST_PASSWORD: "{{ SMTP_PASSWORD }}" diff --git a/tutor/templates/k8s/deployments.yml b/tutor/templates/k8s/deployments.yml index 5deaec4300..765e2be747 100644 --- a/tutor/templates/k8s/deployments.yml +++ b/tutor/templates/k8s/deployments.yml @@ -394,8 +394,8 @@ spec: image: {{ DOCKER_IMAGE_MYSQL }} args: - "mysqld" - - "--character-set-server=utf8mb3" - - "--collation-server=utf8mb3_general_ci" + - "--character-set-server=utf8mb4" + - "--collation-server=utf8mb4_general_ci" - "--binlog-expire-logs-seconds=259200" env: - name: MYSQL_ROOT_PASSWORD diff --git a/tutor/templates/local/docker-compose.yml b/tutor/templates/local/docker-compose.yml index 227f92df8f..b862dda9d4 100644 --- a/tutor/templates/local/docker-compose.yml +++ b/tutor/templates/local/docker-compose.yml @@ -41,8 +41,8 @@ services: image: {{ DOCKER_IMAGE_MYSQL }} command: > mysqld - --character-set-server=utf8mb3 - --collation-server=utf8mb3_general_ci + --character-set-server=utf8mb4 + --collation-server=utf8mb4_general_ci --binlog-expire-logs-seconds=259200 restart: unless-stopped user: "999:999"