mirror of
https://github.com/evennia/evennia.git
synced 2026-03-16 12:56:30 +01:00
Testing to streamline mysql setup more
This commit is contained in:
parent
50417d8970
commit
d54886e9e4
3 changed files with 15 additions and 6 deletions
|
|
@ -59,10 +59,10 @@ jobs:
|
|||
--health-interval 10s
|
||||
--health-timeout 5s
|
||||
--health-retries 5
|
||||
--charset "utf8mb4"
|
||||
--init_command "set collation_connection=utf8mb4_unicode_ci"
|
||||
ports:
|
||||
- 3306:3306
|
||||
volumes:
|
||||
- ${{ github.workspace }}/.github/workflows/mysql_options.cnf:/etc/mysql/conf.d/custom.cnf
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
|
|
|||
9
.github/workflows/mysql_options.cnf
vendored
Normal file
9
.github/workflows/mysql_options.cnf
vendored
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
[mysqld]
|
||||
character-set-server = utf8mb4
|
||||
collation-server = utf9mb4_unicode_ci
|
||||
|
||||
[mysql]
|
||||
default-character-set = utf8mb4
|
||||
|
||||
[client]
|
||||
default-character-set = utf8mb4
|
||||
8
.github/workflows/mysql_settings.py
vendored
8
.github/workflows/mysql_settings.py
vendored
|
|
@ -46,10 +46,10 @@ DATABASES = {
|
|||
"PASSWORD": "evennia",
|
||||
"HOST": os.environ.get("MYSQL_HOST", "127.0.0.1"),
|
||||
"PORT": os.environ.get("MYSQL_PORT", "3306"),
|
||||
# "OPTIONS": {
|
||||
# "charset": "utf8mb4",
|
||||
# "init_command": "set collation_connection=utf8mb4_unicode_ci",
|
||||
# },
|
||||
"OPTIONS": {
|
||||
"charset": "utf8mb4",
|
||||
# "init_command": "set collation_connection=utf8mb4_unicode_ci",
|
||||
},
|
||||
# "TEST": {
|
||||
# "NAME": "evennia",
|
||||
# "OPTIONS": {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue