From 054f9ea08a47bea1773d67b573c514feeed2e481 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Mon, 14 Aug 2023 13:43:52 -0400 Subject: [PATCH] Petition db update including table creation. --- src/engine/db/handlers/dbPetitionHandler.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/engine/db/handlers/dbPetitionHandler.java b/src/engine/db/handlers/dbPetitionHandler.java index 847984c0..cd9afe31 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("SET sql_notes = 0; CREATE TABLE IF NOT EXISTS dyn_petition (\n" + - " petitionNumber INT AUTO_INCREMENT NOT NULL,\n" + + PreparedStatement preparedStatement = connection.prepareStatement("CREATE TABLE IF NOT EXISTS dyn_petition \n" + + " (petitionNumber INT AUTO_INCREMENT NOT NULL,\n" + " petitionTime DATETIME,\n" + " primaryType VARCHAR(50),\n" + " subType VARCHAR(50),\n" + @@ -39,7 +39,7 @@ public class dbPetitionHandler extends dbHandlerBase { " `character` VARCHAR(255),\n" + " location VARCHAR(255),\n" + " PRIMARY KEY (petitionNumber)\n" + - ") ENGINE = innodb ROW_FORMAT = DEFAULT; SET sql_notes = 1;")) { + ") ENGINE = innodb ROW_FORMAT = DEFAULT;")) { preparedStatement.executeQuery();