From 33c67ff4de3932790ec1819518c371cd3d9c7ccf Mon Sep 17 00:00:00 2001 From: Imbus <> Date: Wed, 7 Feb 2024 07:31:29 +0100 Subject: [PATCH] Migration method fix --- src/main/java/datamodel/Database.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/datamodel/Database.java b/src/main/java/datamodel/Database.java index 46bd3d4..fd92fc5 100755 --- a/src/main/java/datamodel/Database.java +++ b/src/main/java/datamodel/Database.java @@ -66,7 +66,7 @@ public class Database { String migration = readResourceFile("/migration.sql"); try { Statement stmt = conn.createStatement(); - stmt.execute(migration); + stmt.executeUpdate(migration); } catch (SQLException e) { e.printStackTrace(); }