Skip to content

Commit

Permalink
Ensure MySQL/MariaDB uses utf8mb4
Browse files Browse the repository at this point in the history
  • Loading branch information
treagod committed Aug 3, 2024
1 parent c1ec616 commit cb198c7
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/specs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,11 @@ jobs:
run: |
apt-get update
apt-get -yqq install mysql-client libmysqlclient-dev
- name: Alter charset for marten_test in MariaDB
run: |
mysql -u root -h mariadb --password=mariadb -e 'ALTER DATABASE marten_test CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;'
env:
PGPASSWORD: mysql
- name: Create additional DB for MySQL
run: |
mysql -u root -h mariadb --password=mariadb -e 'create database marten_other_test;'
Expand Down Expand Up @@ -96,6 +101,11 @@ jobs:
run: |
apt-get update
apt-get -yqq install mysql-client libmysqlclient-dev
- name: Alter charset for marten_test in MySQL
run: |
mysql -u root -h mysql --password=mysql -e 'ALTER DATABASE marten_test CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;'
env:
PGPASSWORD: mysql
- name: Create additional DB for MySQL
run: |
mysql -u root -h mysql --password=mysql -e 'create database marten_other_test;'
Expand Down

0 comments on commit cb198c7

Please sign in to comment.