Skip to content

Commit

Permalink
Fix CorrectWrongCharacterEncodingPatch failing on mysql.user table be…
Browse files Browse the repository at this point in the history
…ing a view
  • Loading branch information
AuroraLS3 committed May 11, 2024
1 parent 9e25f2b commit ca9870d
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ public boolean hasBeenApplied() {
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();
}

Expand Down

0 comments on commit ca9870d

Please sign in to comment.