Removed plan_commandusages table

This commit is contained in:
Rsl1122 2019-09-28 11:55:55 +03:00
parent 5af4fea2b4
commit a9d3a1c9f2
2 changed files with 13 additions and 14 deletions

View File

@ -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()
}; };
} }

View File

@ -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");
}
} }