mirror of
https://github.com/EarthMC/QuickShop-Reremake.git
synced 2026-11-25 01:49:49 -05:00
Dump
Former-commit-id: d0d3acbfd2034ee222be392664940047f5f8b07f
This commit is contained in:
1 parent
1143bccd92
commit
1d317b4d64
1 file changed
+2
-2
@@ -123,10 +123,10 @@ public class DatabaseHelper {
|
||||
private boolean createMessagesTable() throws SQLException {
|
||||
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 );";
|
||||
+ "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 );";
|
||||
+ "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);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user