From ca9870d9fec284ebcd1e86ff145a92a535662e80 Mon Sep 17 00:00:00 2001 From: Aurora Lahtela <24460436+AuroraLS3@users.noreply.github.com> Date: Sat, 11 May 2024 18:58:22 +0300 Subject: [PATCH] Fix CorrectWrongCharacterEncodingPatch failing on mysql.user table being a view --- .../patches/CorrectWrongCharacterEncodingPatch.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Plan/common/src/main/java/com/djrapitops/plan/storage/database/transactions/patches/CorrectWrongCharacterEncodingPatch.java b/Plan/common/src/main/java/com/djrapitops/plan/storage/database/transactions/patches/CorrectWrongCharacterEncodingPatch.java index 0e7ac2b3b..f8d1ec15d 100644 --- a/Plan/common/src/main/java/com/djrapitops/plan/storage/database/transactions/patches/CorrectWrongCharacterEncodingPatch.java +++ b/Plan/common/src/main/java/com/djrapitops/plan/storage/database/transactions/patches/CorrectWrongCharacterEncodingPatch.java @@ -51,6 +51,8 @@ public class CorrectWrongCharacterEncodingPatch extends Patch { if (dbType != DBType.MYSQL) return true; correctionSqlQueries = query(getBadTableCorrectionQueries()); + // Fix for MariaDB mysql.user table being a view + correctionSqlQueries.removeIf(sql -> sql.startsWith("ALTER TABLE `user`")); return correctionSqlQueries.isEmpty(); }