forked from MagicBane/Server
Petition db update including table creation.
This commit is contained in:
@@ -27,8 +27,8 @@ public class dbPetitionHandler extends dbHandlerBase {
|
|||||||
public void CREATE_PETITION_TABLE() {
|
public void CREATE_PETITION_TABLE() {
|
||||||
|
|
||||||
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 " +
|
||||||
" petitionNumber INT AUTO_INCREMENT NOT NULL," +
|
" (petitionNumber INT AUTO_INCREMENT NOT NULL," +
|
||||||
" petitionTime DATETIME," +
|
" petitionTime DATETIME," +
|
||||||
" primaryType VARCHAR(50)," +
|
" primaryType VARCHAR(50)," +
|
||||||
" subType VARCHAR(50)," +
|
" subType VARCHAR(50)," +
|
||||||
|
|||||||
Reference in New Issue
Block a user