Removed Table#createTable(String)

This commit is contained in:
Rsl1122 2019-01-24 15:35:07 +02:00
parent 0ad7caa0a9
commit ddca1574e8

View File

@ -16,8 +16,6 @@
*/
package com.djrapitops.plan.db.sql.tables;
import com.djrapitops.plan.api.exceptions.database.DBInitException;
import com.djrapitops.plan.api.exceptions.database.DBOpException;
import com.djrapitops.plan.db.SQLDB;
import com.djrapitops.plan.db.access.ExecStatement;
import com.djrapitops.plan.db.access.QueryStatement;
@ -51,14 +49,6 @@ public abstract class Table {
this.supportsMySQLQueries = db != null && db.getType().supportsMySQLQueries();
}
protected void createTable(String sql) throws DBInitException {
try {
db.execute(sql);
} catch (DBOpException e) {
throw new DBInitException("Failed to create table: " + tableName, e);
}
}
protected UUID getServerUUID() {
return db.getServerUUIDSupplier().get();
}