diff --git a/src/main/java/org/maxgamer/quickshop/Database/DatabaseHelper.java b/src/main/java/org/maxgamer/quickshop/Database/DatabaseHelper.java index 24c9ec9cb..5e0562452 100644 --- a/src/main/java/org/maxgamer/quickshop/Database/DatabaseHelper.java +++ b/src/main/java/org/maxgamer/quickshop/Database/DatabaseHelper.java @@ -76,17 +76,6 @@ public class DatabaseHelper { } catch (SQLException e) { //ignore } - if (QuickShop.instance.getDatabase().getCore() instanceof MySQLCore) { - try { - ps = db.getConnection().prepareStatement("ALTER TABLE " + QuickShop.instance - .getDbPrefix() + "messages MODIFY COLUMN message text CHARACTER SET utf8mb4 NOT NULL AFTER owner"); - ps.execute(); - ps.close(); - } catch (SQLException e) { - //ignore - } - } - } public void cleanMessage(long weekAgo) { @@ -124,10 +113,6 @@ public class DatabaseHelper { Statement st = db.getConnection().createStatement(); String createTable = "CREATE TABLE " + QuickShop.instance.getDbPrefix() + "messages (owner VARCHAR(255) NOT NULL, message TEXT(25) NOT NULL, time BIGINT(32) NOT NULL );"; - if (plugin.getDatabase().getCore() instanceof MySQLCore) { - createTable = "CREATE TABLE " + QuickShop.instance.getDbPrefix() - + "messages (owner VARCHAR(255) NOT NULL, message TEXT(25) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL , time BIGINT(32) NOT NULL );"; - } return st.execute(createTable); }