Skip to content

Commit

Permalink
Islandora-Devops#268 Resolves collation error when importing matomo.s…
Browse files Browse the repository at this point in the history
…ql file into MariaDB. Changed colation from utf8mb4_0900_ai_ci to utf8mb4_unicode_ci.
  • Loading branch information
bdgregg committed Oct 6, 2023
1 parent b29c653 commit a881c99
Showing 1 changed file with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,14 @@
force: no
register: motomo_sql_dump_create

- name: update database sql file for RedHat
#shell: "sed -i 's/utf8mb4_0900_ai_ci/utf8mb4_unicode_ci/g' {{ webserver_document_root }}/matomo.sql"
replace:
path: "{{ webserver_document_root }}/matomo.sql"
regexp: 'utf8mb4_0900_ai_ci'
replace: 'utf8mb4_unicode_ci'
when: "ansible_os_family == 'RedHat' and islandora_db == 'mysql'"

- name: restore dump
mysql_db:
name: "{{ matomo_db_name }}"
Expand All @@ -26,4 +34,4 @@
group: "{{ matomo_user }}"
mode: 0664
force: no
register: motomo_config_create
register: motomo_config_create

0 comments on commit a881c99

Please sign in to comment.