mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2025-01-13 11:41:34 +01:00
Removed UserUUIDTable.Col
This commit is contained in:
parent
975cb9d21f
commit
071645e1f3
@ -55,7 +55,7 @@ public class GeoInfoTable extends UserUUIDTable {
|
||||
public static final String TABLE_NAME = "plan_ips";
|
||||
|
||||
public static final String ID = "id";
|
||||
public static final String USER_UUID = UserUUIDTable.Col.UUID.get();
|
||||
public static final String USER_UUID = "uuid";
|
||||
public static final String IP = "ip";
|
||||
public static final String IP_HASH = "ip_hash";
|
||||
public static final String GEOLOCATION = "geolocation";
|
||||
|
@ -52,7 +52,7 @@ public class NicknamesTable extends UserUUIDTable {
|
||||
public static final String TABLE_NAME = "plan_nicknames";
|
||||
|
||||
public static final String ID = "id";
|
||||
public static final String USER_UUID = UserUUIDTable.Col.UUID.get();
|
||||
public static final String USER_UUID = "uuid";
|
||||
public static final String SERVER_UUID = "server_uuid";
|
||||
public static final String NICKNAME = "nickname";
|
||||
public static final String LAST_USED = "last_used";
|
||||
|
@ -48,7 +48,7 @@ public class PingTable extends UserUUIDTable {
|
||||
public static final String TABLE_NAME = "plan_ping";
|
||||
|
||||
public static final String ID = "id";
|
||||
public static final String USER_UUID = UserUUIDTable.Col.UUID.get();
|
||||
public static final String USER_UUID = "uuid";
|
||||
public static final String SERVER_UUID = "server_uuid";
|
||||
public static final String DATE = "date";
|
||||
public static final String MAX_PING = "max_ping";
|
||||
|
@ -55,7 +55,7 @@ public class SessionsTable extends UserUUIDTable {
|
||||
public static final String TABLE_NAME = "plan_sessions";
|
||||
|
||||
public static final String ID = "id";
|
||||
public static final String USER_UUID = UserUUIDTable.Col.UUID.get();
|
||||
public static final String USER_UUID = "uuid";
|
||||
public static final String SERVER_UUID = "server_uuid";
|
||||
public static final String SESSION_START = "session_start";
|
||||
public static final String SESSION_END = "session_end";
|
||||
|
@ -53,7 +53,7 @@ public class UserInfoTable extends UserUUIDTable {
|
||||
public static final String TABLE_NAME = "plan_user_info";
|
||||
|
||||
public static final String ID = "id";
|
||||
public static final String USER_UUID = UserUUIDTable.Col.UUID.get();
|
||||
public static final String USER_UUID = "uuid";
|
||||
public static final String SERVER_UUID = "server_uuid";
|
||||
public static final String REGISTERED = "registered";
|
||||
public static final String OP = "opped";
|
||||
|
@ -17,7 +17,6 @@
|
||||
package com.djrapitops.plan.db.sql.tables;
|
||||
|
||||
import com.djrapitops.plan.db.SQLDB;
|
||||
import com.djrapitops.plan.db.sql.parsing.Column;
|
||||
|
||||
/**
|
||||
* Represents a Table that uses UUIDs to get their data.
|
||||
@ -30,23 +29,4 @@ public abstract class UserUUIDTable extends Table {
|
||||
super(name, db);
|
||||
}
|
||||
|
||||
public enum Col implements Column {
|
||||
UUID("uuid");
|
||||
|
||||
private final String column;
|
||||
|
||||
Col(String column) {
|
||||
this.column = column;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String get() {
|
||||
return toString();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return column;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -61,7 +61,7 @@ public class WorldTimesTable extends UserUUIDTable {
|
||||
public static final String TABLE_NAME = "plan_world_times";
|
||||
|
||||
public static final String ID = "id";
|
||||
public static final String USER_UUID = UserUUIDTable.Col.UUID.get();
|
||||
public static final String USER_UUID = "uuid";
|
||||
public static final String SERVER_UUID = "server_uuid";
|
||||
public static final String SESSION_ID = "session_id";
|
||||
public static final String WORLD_ID = "world_id";
|
||||
@ -405,7 +405,7 @@ public class WorldTimesTable extends UserUUIDTable {
|
||||
@Deprecated
|
||||
public enum Col implements Column {
|
||||
@Deprecated ID("id"),
|
||||
@Deprecated UUID(UserUUIDTable.Col.UUID.get()),
|
||||
@Deprecated UUID("uuid"),
|
||||
@Deprecated SERVER_UUID("server_uuid"),
|
||||
@Deprecated SESSION_ID("session_id"),
|
||||
@Deprecated WORLD_ID("world_id"),
|
||||
|
Loading…
Reference in New Issue
Block a user