Replaced init call with createTables in CommonDBTest#Before

This commit is contained in:
Rsl1122 2018-12-27 21:47:34 +02:00
parent 232ead5f1f
commit 33b97b0745
2 changed files with 2 additions and 2 deletions

View File

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

View File

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