Support now null as not initialized for SteamId
Build, Test & Push Auth Service / quality-check (push) Successful in 37s
Build, Test & Push Auth Service / docker (push) Successful in 1m43s

This commit is contained in:
lobo committed 2026-04-19 14:35:02 +02:00
1 parent 7d32c7e04a
commit dda7e50963
2 files changed
+3 -11

No files matched your search

@@ -12,6 +12,7 @@ import java.time.LocalDateTime;
@NoArgsConstructor
@AllArgsConstructor
@Builder
@Inheritance(strategy = InheritanceType.SINGLE_TABLE)
public class RegisteredUserEntity {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@@ -26,7 +27,7 @@ public class RegisteredUserEntity {
@Column(nullable = false)
private boolean enabled;
@Column(name = "steam_id", unique = true, nullable = false)
@Column(name = "steam_id", unique = true)
private Long steamId;
@Column(name = "registration_date", nullable = false)
@@ -34,4 +35,4 @@ public class RegisteredUserEntity {
@Column(name = "last_login_date")
private LocalDateTime lastLoginDate;
}
}
@@ -1,9 +0,0 @@
UPDATE users
SET steam_id = 0
WHERE steam_id IS NULL;
ALTER TABLE users
ALTER COLUMN steam_id SET DEFAULT 0;
ALTER TABLE users
ALTER COLUMN steam_id SET NOT NULL;