aboutsummaryrefslogtreecommitdiff
path: root/internal/db
diff options
context:
space:
mode:
authorJoe Chen <jc@unknwon.io>2022-06-08 14:47:15 +0800
committerGitHub <noreply@github.com>2022-06-08 14:47:15 +0800
commit0918d8758b7470c5e1f64a62c2e48e4168993394 (patch)
tree5c40aed0f458bcaa2c4e1962bb8ce00c6c87eea3 /internal/db
parentfe1d07f29caffe5604e604cae7e30bd7d24161f2 (diff)
db: add back xorm tag for `AccessToken.UserID` (#7032)
Diffstat (limited to 'internal/db')
-rw-r--r--internal/db/access_tokens.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/db/access_tokens.go b/internal/db/access_tokens.go
index 83b5747d..5345a65f 100644
--- a/internal/db/access_tokens.go
+++ b/internal/db/access_tokens.go
@@ -43,7 +43,7 @@ var AccessTokens AccessTokensStore
// AccessToken is a personal access token.
type AccessToken struct {
ID int64
- UserID int64 `gorm:"column:uid;index"`
+ UserID int64 `xorm:"uid" gorm:"column:uid;index"`
Name string
Sha1 string `gorm:"type:VARCHAR(40);unique"`
SHA256 string `gorm:"type:VARCHAR(64);unique;not null"`