Browse Source

Petition db update including table creation.

master
MagicBot 1 year ago
parent
commit
cacceba502
  1. 24
      src/engine/db/handlers/dbPetitionHandler.java

24
src/engine/db/handlers/dbPetitionHandler.java

@ -28,18 +28,18 @@ public class dbPetitionHandler extends dbHandlerBase {
try (Connection connection = DbManager.getConnection(); try (Connection connection = DbManager.getConnection();
PreparedStatement preparedStatement = connection.prepareStatement("CREATE TABLE IF NOT EXISTS dyn_petition \n" + PreparedStatement preparedStatement = connection.prepareStatement("CREATE TABLE IF NOT EXISTS dyn_petition \n" +
" (petitionNumber INT AUTO_INCREMENT NOT NULL,\n" + " petitionNumber INT AUTO_INCREMENT NOT NULL," +
" petitionTime DATETIME,\n" + " petitionTime DATETIME," +
" primaryType VARCHAR(50),\n" + " primaryType VARCHAR(50)," +
" subType VARCHAR(50),\n" + " subType VARCHAR(50)," +
" message VARCHAR(255),\n" + " message VARCHAR(255)," +
" accountID INT,\n" + " accountID INT," +
" account VARCHAR(255),\n" + " account VARCHAR(255)," +
" characterID INT,\n" + " characterID INT," +
" `character` VARCHAR(255),\n" + " character` VARCHAR(255)," +
" location VARCHAR(255),\n" + " location VARCHAR(255), " +
" PRIMARY KEY (petitionNumber)\n" + " PRIMARY KEY (petitionNumber))" +
") ENGINE = innodb ROW_FORMAT = DEFAULT;")) { " ENGINE = innodb ROW_FORMAT = DEFAULT;")) {
preparedStatement.executeQuery(); preparedStatement.executeQuery();

Loading…
Cancel
Save