From 7f2eb65658dd64f31f1c2a8d1dca453ac9bfb0f7 Mon Sep 17 00:00:00 2001 From: mg Date: Wed, 20 Dec 2023 12:33:07 +0100 Subject: [PATCH] fix Nextcloud DB (#634) Reviewed-on: https://git.mgrote.net/mg/homeserver/pulls/634 --- docker-compose/nextcloud/docker-compose.yml.j2 | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/docker-compose/nextcloud/docker-compose.yml.j2 b/docker-compose/nextcloud/docker-compose.yml.j2 index 77e2628f..10f8de18 100644 --- a/docker-compose/nextcloud/docker-compose.yml.j2 +++ b/docker-compose/nextcloud/docker-compose.yml.j2 @@ -21,6 +21,13 @@ services: labels: com.centurylinklabs.watchtower.enable: true + # Error + ## [ERROR] Incorrect definition of table mysql.column_stats: expected column 'histogram' at position 10 to have type longblob, found type varbinary(255). + ## [ERROR] Incorrect definition of table mysql.column_stats: expected column 'hist_type' at position 9 to have type enum('SINGLE_PREC_HB','DOUBLE_PREC_HB','JSON_HB'), found type enum('SINGLE_PREC_HB','DOUBLE_PREC_HB'). + # Fix + ## docker exec nextcloud-db mysql nextcloud -p -e "ALTER TABLE mysql.column_stats MODIFY histogram longblob;" + ## docker exec nextcloud-db mysql nextcloud -p -e "ALTER TABLE mysql.column_stats MODIFY hist_type enum('SINGLE_PREC_HB','DOUBLE_PREC_HB','JSON_HB');" + ######## Redis ######## nextcloud-redis: image: redis:7-alpine