mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2024-11-21 01:14:15 +08:00
Fix CorrectWrongCharacterEncodingPatch failing on mysql.user table being a view
This commit is contained in:
parent
9e25f2b26c
commit
ca9870d9fe
@ -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();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user