Archived
0

Fixed the table structure for the Discord table

This commit is contained in:
Minenash
2018-12-11 16:16:23 -05:00
parent b7112af7e6
commit 5bc22bc37f

View File

@@ -58,10 +58,10 @@ public class Discord implements Module {
try {
MysqlDatabase database = MysqlHandler.INSTANCE.getDatabase(config.get("database") + "?autoReconnect=true");
MysqlField token = new MysqlField("token", new VarChar(8), false);
MysqlField uuid = new MysqlField("uuid", new VarChar(36), false);
MysqlField pass = new MysqlField("token", new VarChar(8), false);
database.createTableIfNotExists((String) config.get("table"), uuid, pass);
database.createTableIfNotExists((String) config.get("table"), token, uuid);
table = database.getTable(config.get("table"));
} catch (NullPointerException e) {