You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Refactor database interactions to use a unified InfoTable; update AddBone and AddCluster handlers for consistency; remove deprecated methods and improve error handling
Copy file name to clipboardExpand all lines: src/main/java/io/nodelink/server/app/infra/DatabaseService.java
+7-36Lines changed: 7 additions & 36 deletions
Original file line number
Diff line number
Diff line change
@@ -13,18 +13,19 @@ public class DatabaseService {
13
13
Statementstmt = conn.createStatement();
14
14
15
15
// Tables existantes
16
-
stmt.execute("CREATE TABLE IF NOT EXISTS ClusterTable (id TEXT PRIMARY KEY, content TEXT, clusterType TEXT, updated_at DATETIME DEFAULT CURRENT_TIMESTAMP);");
17
-
stmt.execute("CREATE TABLE IF NOT EXISTS BoneTable (id TEXT PRIMARY KEY, content TEXT, boneType TEXT, updated_at DATETIME DEFAULT CURRENT_TIMESTAMP);");
16
+
stmt.execute("CREATE TABLE IF NOT EXISTS InfoTable (id TEXT PRIMARY KEY, content TEXT, ServerType TEXT, updated_at DATETIME DEFAULT CURRENT_TIMESTAMP);");
0 commit comments