From 1de1bf6571de535f8666d40bdda46301f444cdff Mon Sep 17 00:00:00 2001 From: Chaoscaot Date: Tue, 2 Dec 2025 00:47:54 +0100 Subject: [PATCH] Fix Leaderboard ID handling Signed-off-by: Chaoscaot --- CommonCore/SQL/src/de/steamwar/sql/Leaderboard.kt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CommonCore/SQL/src/de/steamwar/sql/Leaderboard.kt b/CommonCore/SQL/src/de/steamwar/sql/Leaderboard.kt index cc04b500..8a6e3e47 100644 --- a/CommonCore/SQL/src/de/steamwar/sql/Leaderboard.kt +++ b/CommonCore/SQL/src/de/steamwar/sql/Leaderboard.kt @@ -44,6 +44,10 @@ object LeaderboardTable : CompositeIdTable("Leaderboard") { val bestTime = bool("BestTime") override val primaryKey = PrimaryKey(userId, name) + + init { + addIdColumn(userId) + } } class Leaderboard(id: EntityID) : CompositeEntity(id) {