CI: Testing to add mysql.cnf file

This commit is contained in:
Griatch 2025-12-19 12:15:24 +01:00
parent ac933f48b2
commit c03a0dc38a
4 changed files with 11 additions and 20 deletions

View file

@ -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
View file

@ -0,0 +1,5 @@
[mysqld]
character-set-server=utf8mb4
collation-server=utf8mb4_unicode_ci
innodb-default-row-format=DYNAMIC

View file

@ -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"