Set mariadb sql_mode for CakePHP compatibility

This commit is contained in:
Karl Cordes 2025-11-24 10:28:07 +11:00
parent ee182f3c6e
commit 50d2541600
2 changed files with 6 additions and 0 deletions

View file

@ -1 +1,4 @@
FROM mariadb:latest FROM mariadb:latest
# Copy custom MariaDB configuration to disable strict mode
COPY conf/mariadb-no-strict.cnf /etc/mysql/conf.d/

View file

@ -0,0 +1,3 @@
[mysqld]
# Custom sql_mode for legacy CakePHP compatibility
sql_mode = ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION