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