From 26bcbbcbbcd1ec31b10c6e483688af863a4e67f1 Mon Sep 17 00:00:00 2001 From: Michele Porelli Date: Sun, 11 Aug 2024 10:40:45 -0700 Subject: [PATCH] feat(db) set explicit parameter The parameter is already on by default in recent MariaDB versions, this is to ensure that people using older versions can still use the service and upgrade safely. --- docker-compose.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docker-compose.yml b/docker-compose.yml index 59cf83e..ce68d41 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -41,6 +41,7 @@ services: MARIADB_USER: ${MARIADB_SYNCSTORAGE_USER} MARIADB_PASSWORD: ${MARIADB_SYNCSTORAGE_PASSWORD} MARIADB_AUTO_UPGRADE: "true" + command: [mariadbd, --explicit_defaults_for_timestamp] healthcheck: test: ["CMD", "healthcheck.sh", "--connect", "--innodb_initialized"] start_period: 10s @@ -60,6 +61,7 @@ services: MARIADB_USER: ${MARIADB_TOKENSERVER_USER} MARIADB_PASSWORD: ${MARIADB_TOKENSERVER_PASSWORD} MARIADB_AUTO_UPGRADE: "true" + command: [mariadbd, --explicit_defaults_for_timestamp] healthcheck: test: ["CMD", "healthcheck.sh", "--connect", "--innodb_initialized"] start_period: 10s