forked from SteamWar/SteamWar
Refactor TeamTable to introduce default values for color and deleted, and make address column nullable.
Signed-off-by: Chaoscaot <max@maxsp.de>
This commit is contained in:
@@ -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")
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user