From 602fc77ff96db808c459f7c6bc7bb29d648e4aed Mon Sep 17 00:00:00 2001 From: MagicBot Date: Mon, 14 Aug 2023 13:53:37 -0400 Subject: [PATCH] Petition db update including table creation. --- src/engine/db/handlers/dbPetitionHandler.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/engine/db/handlers/dbPetitionHandler.java b/src/engine/db/handlers/dbPetitionHandler.java index 3b59ce45..400c3070 100644 --- a/src/engine/db/handlers/dbPetitionHandler.java +++ b/src/engine/db/handlers/dbPetitionHandler.java @@ -27,8 +27,8 @@ public class dbPetitionHandler extends dbHandlerBase { public void CREATE_PETITION_TABLE() { try (Connection connection = DbManager.getConnection(); - PreparedStatement preparedStatement = connection.prepareStatement("CREATE TABLE IF NOT EXISTS dyn_petition \n" + - " petitionNumber INT AUTO_INCREMENT NOT NULL," + + PreparedStatement preparedStatement = connection.prepareStatement("CREATE TABLE IF NOT EXISTS dyn_petition " + + " (petitionNumber INT AUTO_INCREMENT NOT NULL," + " petitionTime DATETIME," + " primaryType VARCHAR(50)," + " subType VARCHAR(50)," +