From a5c65f2a0b526783513246a2c2d854a3ee47d367 Mon Sep 17 00:00:00 2001 From: Ghost_chu Date: Tue, 7 Jan 2025 18:06:11 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20ALTER=20TABLE=20=E8=AF=AD?= =?UTF-8?q?=E5=8F=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/ghostchu/btn/sparkle/module/user/internal/User.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/ghostchu/btn/sparkle/module/user/internal/User.java b/src/main/java/com/ghostchu/btn/sparkle/module/user/internal/User.java index 8ff4ae3..a7ddfa1 100644 --- a/src/main/java/com/ghostchu/btn/sparkle/module/user/internal/User.java +++ b/src/main/java/com/ghostchu/btn/sparkle/module/user/internal/User.java @@ -11,7 +11,7 @@ @Entity @Table(name = "user", - uniqueConstraints = {@UniqueConstraint(columnNames = "githubId")}, + uniqueConstraints = {@UniqueConstraint(columnNames = "githubUserId")}, indexes = {@Index(columnList = "githubLogin"),@Index(columnList = "githubUserId")}) @AllArgsConstructor @NoArgsConstructor