mirror of
https://github.com/evennia/evennia.git
synced 2026-03-16 21:06:30 +01:00
CI: Testing to add mysql.cnf file
This commit is contained in:
parent
ac933f48b2
commit
c03a0dc38a
4 changed files with 11 additions and 20 deletions
|
|
@ -71,6 +71,7 @@ jobs:
|
|||
--health-interval=10s
|
||||
--health-timeout=5s
|
||||
--health-retries=3
|
||||
--mount type=bind,source=${{ github.workspace }}/.github/workflows/mysql.cnf,target=/etc/mysql/conf.d/custom.cnf,readonly
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
|
|
|||
5
.github/workflows/mysql.cnf
vendored
Normal file
5
.github/workflows/mysql.cnf
vendored
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
[mysqld]
|
||||
character-set-server=utf8mb4
|
||||
collation-server=utf8mb4_unicode_ci
|
||||
innodb-default-row-format=DYNAMIC
|
||||
|
||||
3
.github/workflows/mysql_settings.py
vendored
3
.github/workflows/mysql_settings.py
vendored
|
|
@ -48,8 +48,7 @@ DATABASES = {
|
|||
"PORT": "", # use default port
|
||||
"OPTIONS": {
|
||||
"charset": "utf8mb4",
|
||||
# Note: innodb_default_row_format is set globally in setup-database action
|
||||
# This ensures all new tables use DYNAMIC format for utf8mb4 long keys
|
||||
# Note: MySQL server is configured with utf8mb4 and DYNAMIC row format at startup
|
||||
"init_command": (
|
||||
"SET collation_connection=utf8mb4_unicode_ci, "
|
||||
"sql_mode='STRICT_TRANS_TABLES', innodb_strict_mode=1"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue