mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2025-01-04 23:48:42 +01:00
Removed plan_commandusages table
This commit is contained in:
parent
5af4fea2b4
commit
a9d3a1c9f2
@ -167,7 +167,8 @@ public abstract class SQLDB extends AbstractDatabase {
|
||||
new BadAFKThresholdValuePatch(),
|
||||
new DeleteIPsPatch(),
|
||||
new ExtensionShowInPlayersTablePatch(),
|
||||
new ExtensionTableRowValueLengthPatch()
|
||||
new ExtensionTableRowValueLengthPatch(),
|
||||
new CommandUsageTableRemovalPatch()
|
||||
};
|
||||
}
|
||||
|
||||
|
@ -14,24 +14,22 @@
|
||||
* You should have received a copy of the GNU Lesser General Public License
|
||||
* along with Plan. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
package com.djrapitops.plan.storage.database.sql.tables;
|
||||
package com.djrapitops.plan.storage.database.transactions.patches;
|
||||
|
||||
/**
|
||||
* Table information about 'plan_commandusages'.
|
||||
*
|
||||
* Patches affecting this table:
|
||||
* {@link com.djrapitops.plan.storage.database.transactions.patches.Version10Patch}
|
||||
* Patch that removes plan_commandusages table.
|
||||
*
|
||||
* @author Rsl1122
|
||||
* @deprecated TODO DELETE AFTER DROPPING TABLE
|
||||
*/
|
||||
@Deprecated
|
||||
public class CommandUseTable {
|
||||
public class CommandUsageTableRemovalPatch extends Patch {
|
||||
|
||||
public static final String TABLE_NAME = "plan_commandusages";
|
||||
|
||||
private CommandUseTable() {
|
||||
/* Static information class */
|
||||
@Override
|
||||
public boolean hasBeenApplied() {
|
||||
return !hasTable("plan_commandusages");
|
||||
}
|
||||
|
||||
}
|
||||
@Override
|
||||
protected void applyPatch() {
|
||||
dropTable("plan_commandusages");
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user