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 DeleteIPsPatch(),
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
* 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");
}
}