From c1219336b557674adb70825e95c2630a7c2cdbc3 Mon Sep 17 00:00:00 2001 From: Marc Baloup Date: Sun, 23 Jan 2022 16:18:59 +0100 Subject: [PATCH] SQLPlayer.token is now a String instead of UUID --- Core/src/main/java/fr/pandacube/lib/core/db/SQLElement.java | 1 - Core/src/main/java/fr/pandacube/lib/core/players/SQLPlayer.java | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/Core/src/main/java/fr/pandacube/lib/core/db/SQLElement.java b/Core/src/main/java/fr/pandacube/lib/core/db/SQLElement.java index 3ecb54a..4c2f732 100644 --- a/Core/src/main/java/fr/pandacube/lib/core/db/SQLElement.java +++ b/Core/src/main/java/fr/pandacube/lib/core/db/SQLElement.java @@ -466,7 +466,6 @@ public abstract class SQLElement> { public static final SQLType DOUBLE = new SQLType<>("DOUBLE", Double.class); - @Deprecated public static final SQLType CHAR(int charCount) { if (charCount <= 0) throw new IllegalArgumentException("charCount must be positive."); return new SQLType<>("CHAR(" + charCount + ")", String.class); diff --git a/Core/src/main/java/fr/pandacube/lib/core/players/SQLPlayer.java b/Core/src/main/java/fr/pandacube/lib/core/players/SQLPlayer.java index 02504a2..62055c7 100644 --- a/Core/src/main/java/fr/pandacube/lib/core/players/SQLPlayer.java +++ b/Core/src/main/java/fr/pandacube/lib/core/players/SQLPlayer.java @@ -33,7 +33,7 @@ public class SQLPlayer extends SQLElement { */ public static final SQLField playerId = field(CHAR36_UUID, false); public static final SQLField playerName = field(VARCHAR(16), false); - public static final SQLField token = field(CHAR36_UUID, true); + public static final SQLField token = field(CHAR(36), true); public static final SQLField mailCheck = field(VARCHAR(255), true); public static final SQLField password = field(VARCHAR(255), true); public static final SQLField mail = field(VARCHAR(255), true);