From 36691c6feac986ad4988526a4f8110a895b74875 Mon Sep 17 00:00:00 2001 From: Chaoscaot Date: Tue, 11 Nov 2025 18:44:25 +0100 Subject: [PATCH] Refactor `TeamTable` to introduce default values for `color` and `deleted`, and make `address` column nullable. Signed-off-by: Chaoscaot --- CommonCore/SQL/src/de/steamwar/sql/Team.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/CommonCore/SQL/src/de/steamwar/sql/Team.kt b/CommonCore/SQL/src/de/steamwar/sql/Team.kt index e02fe6e5..086dc81a 100644 --- a/CommonCore/SQL/src/de/steamwar/sql/Team.kt +++ b/CommonCore/SQL/src/de/steamwar/sql/Team.kt @@ -31,10 +31,10 @@ import org.jetbrains.exposed.v1.jdbc.select object TeamTable : IntIdTable("Team", "TeamID") { val kuerzel = varchar("TeamKuerzel", 10) - val color = char("TeamColor", 1) + val color = char("TeamColor", 1).default("8") val name = varchar("TeamName", 16) - val deleted = bool("TeamDeleted") - val address = text("Address") + val deleted = bool("TeamDeleted").default(false) + val address = text("Address").nullable() val port = ushort("Port") }