add new db tables (#13)
Some checks failed
Build / Explore-Gitea-Actions (push) Has been cancelled
Some checks failed
Build / Explore-Gitea-Actions (push) Has been cancelled
Co-authored-by: ThePindabaas <219561634+ThePindabaas@users.noreply.github.com> Co-authored-by: Ardakaz <ardakaz@duck.com> Reviewed-on: #13 Reviewed-by: Ardakaz <ardakaz@duck.com> Co-authored-by: ThePindabaas <thepindabaas@noreply.localhost> Co-committed-by: ThePindabaas <thepindabaas@noreply.localhost>
This commit is contained in:
@@ -197,7 +197,11 @@ public class GriefAlert extends JavaPlugin implements Listener {
|
||||
try {
|
||||
connection = DriverManager.getConnection(jdbcUrl);
|
||||
Statement stmt = connection.createStatement();
|
||||
stmt.executeUpdate("CREATE TABLE IF NOT EXISTS ignored_locations (x INTEGER, y INTEGER, z INTEGER, world TEXT, PRIMARY KEY (x, y, z, world))");
|
||||
stmt.executeUpdate(Migrations.CREATE_TABLE_IGNORED_LOCATIONS);
|
||||
stmt.executeUpdate(Migrations.CREATE_TABLE_PLAYERS);
|
||||
stmt.executeUpdate(Migrations.CREATE_TABLE_ACTIONS);
|
||||
stmt.executeUpdate(Migrations.CREATE_TABLE_ALERTS);
|
||||
stmt.executeUpdate(Migrations.CREATE_TABLE_REPORTS);
|
||||
stmt.close();
|
||||
getLogger().info("Connected to "+jdbcUrl);
|
||||
} catch (SQLException e) {
|
||||
|
||||
Reference in New Issue
Block a user