Class CorrectWrongCharacterEncodingPatch
java.lang.Object
com.djrapitops.plan.storage.database.transactions.Transaction
com.djrapitops.plan.storage.database.transactions.init.OperationCriticalTransaction
com.djrapitops.plan.storage.database.transactions.patches.Patch
com.djrapitops.plan.storage.database.transactions.patches.CorrectWrongCharacterEncodingPatch
Corrects database charset and collation.
-
Nested Class Summary
Nested classes/interfaces inherited from class Transaction
Transaction.IsolationLevel -
Field Summary
Fields inherited from class Transaction
attempts, dbType, success -
Constructor Summary
ConstructorsConstructorDescriptionCorrectWrongCharacterEncodingPatch(net.playeranalytics.plugin.server.PluginLogger logger, PlanConfig config) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidbooleanMethods inherited from class Patch
addColumn, allValuesHaveValueZero, columnVarcharLength, dropColumn, dropForeignKeys, dropTable, ensureNoForeignKeyConstraints, hasColumn, isApplied, performOperations, renameTable, shouldBeExecuted, wasAppliedMethods inherited from class OperationCriticalTransaction
executeTransactionMethods inherited from class Transaction
commitMidTransaction, dbIsNotUnderHeavyLoad, execute, execute, executeOther, executeReturningId, executeSwallowingExceptions, getDBState, getDesiredIsolationLevel, getName, getServerUUID, hasTable, lockForUpdate, query, toString, wasSuccessful
-
Constructor Details
-
CorrectWrongCharacterEncodingPatch
@Inject public CorrectWrongCharacterEncodingPatch(net.playeranalytics.plugin.server.PluginLogger logger, PlanConfig config)
-
-
Method Details
-
hasBeenApplied
public boolean hasBeenApplied()- Specified by:
hasBeenAppliedin classPatch
-
getBadTableCorrectionQueries
-
applyPatch
protected void applyPatch()- Specified by:
applyPatchin classPatch
-