mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2024-12-23 01:27:42 +01:00
Replaced init call with createTables in CommonDBTest#Before
This commit is contained in:
parent
232ead5f1f
commit
33b97b0745
@ -225,7 +225,7 @@ public abstract class SQLDB extends Database {
|
||||
* <p>
|
||||
* Updates table columns to latest schema.
|
||||
*/
|
||||
private void createTables() throws DBInitException {
|
||||
public void createTables() throws DBInitException {
|
||||
for (Table table : getAllTables()) {
|
||||
table.createTable();
|
||||
}
|
||||
|
@ -117,7 +117,7 @@ public abstract class CommonDBTest {
|
||||
dropTable("plan_users");
|
||||
}
|
||||
}.apply();
|
||||
db.init();
|
||||
db.createTables();
|
||||
db.remove().everything();
|
||||
ServerTable serverTable = db.getServerTable();
|
||||
serverTable.saveCurrentServerInfo(new Server(-1, serverUUID, "ServerName", "", 20));
|
||||
|
Loading…
Reference in New Issue
Block a user