mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2024-11-03 01:10:17 +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 BadAFKThresholdValuePatch(),
|
||||||
new DeleteIPsPatch(),
|
new DeleteIPsPatch(),
|
||||||
new ExtensionShowInPlayersTablePatch(),
|
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
|
* You should have received a copy of the GNU Lesser General Public License
|
||||||
* along with Plan. If not, see <https://www.gnu.org/licenses/>.
|
* 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'.
|
* Patch that removes plan_commandusages table.
|
||||||
*
|
|
||||||
* Patches affecting this table:
|
|
||||||
* {@link com.djrapitops.plan.storage.database.transactions.patches.Version10Patch}
|
|
||||||
*
|
*
|
||||||
* @author Rsl1122
|
* @author Rsl1122
|
||||||
* @deprecated TODO DELETE AFTER DROPPING TABLE
|
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
public class CommandUsageTableRemovalPatch extends Patch {
|
||||||
public class CommandUseTable {
|
|
||||||
|
|
||||||
public static final String TABLE_NAME = "plan_commandusages";
|
@Override
|
||||||
|
public boolean hasBeenApplied() {
|
||||||
private CommandUseTable() {
|
return !hasTable("plan_commandusages");
|
||||||
/* Static information class */
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected void applyPatch() {
|
||||||
|
dropTable("plan_commandusages");
|
||||||
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user