Skip to content

Commit af325a0

Browse files
committed
refact(mysql): utf8 to utf8mb4
1 parent 6a3961c commit af325a0

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

.env

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ DB_DSN=mysql:host=mysql;dbname=web
1515
DB_USER=web
1616
DB_PASSWORD=web
1717
DB_TABLE_PREFIX=prefix_
18-
DB_CHARSET=utf8
18+
DB_CHARSET=utf8mb4
1919

2020
# Configure a SMTP server here if you want to send emails
2121
SMTP_HOST="smtp.demo.com"

deploy/production/.env

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ DB_DSN=mysql:host=mysql;dbname=web
1515
DB_USER=web
1616
DB_PASSWORD=web
1717
DB_TABLE_PREFIX=prefix_
18-
DB_CHARSET=utf8
18+
DB_CHARSET=utf8mb4
1919

2020
# Configure a SMTP server here if you want to send emails
2121
SMTP_HOST="smtp"

docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ services:
4040
MYSQL_PASSWORD: web
4141
volumes:
4242
- ./deploy/development/mysql:/var/lib/mysql
43-
43+
command: ['--character-set-server=utf8mb4', '--collation-server=utf8mb4_unicode_ci']
4444
redis:
4545
image: redis:latest
4646
expose:

tests/.env

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ DB_DSN=mysql:host=mysql;dbname=web
1515
DB_USER=web
1616
DB_PASSWORD=web
1717
DB_TABLE_PREFIX=prefix_
18-
DB_CHARSET=utf8
18+
DB_CHARSET=utf8mb4
1919

2020
# Configure a SMTP server here if you want to send emails
2121
SMTP_HOST="smtp.mail.com"

0 commit comments

Comments
 (0)