You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// TODO: This should all be prepared statements, but that breaks for some reason
78
+
PreparedStatementdatabaseStatement = connection.get().prepareStatement("CREATE DATABASE IF NOT EXISTS " + database);
79
+
databaseStatement.execute();
80
+
databaseStatement.close();
81
+
82
+
PreparedStatementformattingStatement = connection.get().prepareStatement("CREATE TABLE IF NOT EXISTS " + database + ".formatting (`format` VARCHAR(400) NOT NULL, formatter VARCHAR(200) NOT NULL)");
83
+
formattingStatement.execute();
84
+
formattingStatement.close();
85
+
86
+
PreparedStatementgroupMembersStatement = connection.get().prepareStatement("CREATE TABLE IF NOT EXISTS " + database + ".groupMembers (uuid VARCHAR(767) NOT NULL, `group` VARCHAR(700) NOT NULL, `primary` TINYINT NOT NULL)");
87
+
groupMembersStatement.execute();
88
+
groupMembersStatement.close();
89
+
90
+
PreparedStatementgroupPermissionsStatement = connection.get().prepareStatement("CREATE TABLE IF NOT EXISTS " + database +".groupPermissions (groupName VARCHAR(767) NOT NULL, permission VARCHAR(767) NOT NULL)");
91
+
groupPermissionsStatement.execute();
92
+
groupPermissionsStatement.close();
93
+
94
+
PreparedStatementgroupsStatement = connection.get().prepareStatement("CREATE TABLE IF NOT EXISTS " + database + ".groups (name VARCHAR(100) NOT NULL UNIQUE, prefix VARCHAR(100) NOT NULL, suffix VARCHAR(100) NOT NULL, chatcolor VARCHAR(4) NOT NULL, defaultGroup TINYINT NOT NULL)");
95
+
groupsStatement.execute();
96
+
groupsStatement.close();
97
+
98
+
PreparedStatementplayerPermissionsStatement = connection.get().prepareStatement("CREATE TABLE IF NOT EXISTS " + database + ".playerPermissions (uuid VARCHAR(767) NOT NULL, permission VARCHAR(767) NOT NULL, granted TINYINT NOT NULL)");
99
+
playerPermissionsStatement.execute();
100
+
playerPermissionsStatement.close();
101
+
102
+
PreparedStatementsuperAdminStatement = connection.get().prepareStatement("CREATE TABLE IF NOT EXISTS " + database + ".superAdmin (uuid VARCHAR(767) NOT NULL)");
0 commit comments