Class RegisterDateMinimizationPatch
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.RegisterDateMinimizationPatch
Changes register dates on networks to the smallest number found in the database.
Proxy servers do not store player register date information, so Game servers can hold earlier join date than the first session Plan sees. This patch changes the register date in plan_users if a smaller register date in plan_user_info is found.
-
Field Summary
Fields inherited from class com.djrapitops.plan.storage.database.transactions.Transaction
attempts, dbType, success
-
Constructor Summary
-
Method Summary
Methods inherited from class com.djrapitops.plan.storage.database.transactions.patches.Patch
addColumn, allValuesHaveValueZero, columnVarcharLength, dropForeignKeys, dropTable, ensureNoForeignKeyConstraints, hasColumn, isApplied, performOperations, renameTable, shouldBeExecuted, wasApplied
Methods inherited from class com.djrapitops.plan.storage.database.transactions.init.OperationCriticalTransaction
executeTransaction
Methods inherited from class com.djrapitops.plan.storage.database.transactions.Transaction
commitMidTransaction, dbIsNotUnderHeavyLoad, execute, execute, executeOther, executeReturningId, executeSwallowingExceptions, getDBState, getName, getServerUUID, hasTable, query, toString, wasSuccessful
-
Constructor Details
-
RegisterDateMinimizationPatch
public RegisterDateMinimizationPatch()
-
-
Method Details
-
hasBeenApplied
public boolean hasBeenApplied()- Specified by:
hasBeenApplied
in classPatch
-
applyPatch
protected void applyPatch()- Specified by:
applyPatch
in classPatch
-