mirror of
https://github.com/TotalFreedomMC/TF-PlotSquared.git
synced 2025-08-09 22:13:12 +00:00
UUID mode conversion (untested)
This commit is contained in:
parent
27c2b08c2f
commit
42a34fc44a
10 changed files with 284 additions and 31 deletions
|
@ -1888,4 +1888,33 @@ public class SQLManager implements AbstractDB {
|
|||
}
|
||||
});
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean deleteTables() {
|
||||
try {
|
||||
SQLManager.this.connection = PlotSquared.getMySQL().forceConnection();
|
||||
final Statement stmt = this.connection.createStatement();
|
||||
stmt.addBatch("DROP TABLE `" + prefix + "cluster_invited`");
|
||||
stmt.addBatch("DROP TABLE `" + prefix + "cluster_helpers`");
|
||||
stmt.addBatch("DROP TABLE `" + prefix + "cluster`");
|
||||
stmt.addBatch("DROP TABLE `" + prefix + "plot_ratings`");
|
||||
stmt.addBatch("DROP TABLE `" + prefix + "plot_settings`");
|
||||
stmt.addBatch("DROP TABLE `" + prefix + "plot_comments`");
|
||||
stmt.addBatch("DROP TABLE `" + prefix + "plot_trusted`");
|
||||
stmt.addBatch("DROP TABLE `" + prefix + "plot_helpers`");
|
||||
stmt.addBatch("DROP TABLE `" + prefix + "plot_denied`");
|
||||
stmt.executeBatch();
|
||||
stmt.clearBatch();
|
||||
stmt.close();
|
||||
|
||||
PreparedStatement statement = connection.prepareStatement("DROP TABLE `" + prefix + "plot`");
|
||||
statement.executeUpdate();
|
||||
statement.close();
|
||||
return true;
|
||||
}
|
||||
catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue