SQLPlayer.token is now a String instead of UUID

This commit is contained in:
Marc Baloup 2022-01-23 16:18:59 +01:00
parent 24d2ecfa33
commit c1219336b5
Signed by: marcbal
GPG Key ID: BBC0FE3ABC30B893
2 changed files with 1 additions and 2 deletions

View File

@ -466,7 +466,6 @@ public abstract class SQLElement<E extends SQLElement<E>> {
public static final SQLType<Double> DOUBLE = new SQLType<>("DOUBLE", Double.class); public static final SQLType<Double> DOUBLE = new SQLType<>("DOUBLE", Double.class);
@Deprecated
public static final SQLType<String> CHAR(int charCount) { public static final SQLType<String> CHAR(int charCount) {
if (charCount <= 0) throw new IllegalArgumentException("charCount must be positive."); if (charCount <= 0) throw new IllegalArgumentException("charCount must be positive.");
return new SQLType<>("CHAR(" + charCount + ")", String.class); return new SQLType<>("CHAR(" + charCount + ")", String.class);

View File

@ -33,7 +33,7 @@ public class SQLPlayer extends SQLElement<SQLPlayer> {
*/ */
public static final SQLField<SQLPlayer, UUID> playerId = field(CHAR36_UUID, false); public static final SQLField<SQLPlayer, UUID> playerId = field(CHAR36_UUID, false);
public static final SQLField<SQLPlayer, String> playerName = field(VARCHAR(16), false); public static final SQLField<SQLPlayer, String> playerName = field(VARCHAR(16), false);
public static final SQLField<SQLPlayer, UUID> token = field(CHAR36_UUID, true); public static final SQLField<SQLPlayer, String> token = field(CHAR(36), true);
public static final SQLField<SQLPlayer, String> mailCheck = field(VARCHAR(255), true); public static final SQLField<SQLPlayer, String> mailCheck = field(VARCHAR(255), true);
public static final SQLField<SQLPlayer, String> password = field(VARCHAR(255), true); public static final SQLField<SQLPlayer, String> password = field(VARCHAR(255), true);
public static final SQLField<SQLPlayer, String> mail = field(VARCHAR(255), true); public static final SQLField<SQLPlayer, String> mail = field(VARCHAR(255), true);