From e6a788dad6383450d7faa112727f6bf83fb2ebb0 Mon Sep 17 00:00:00 2001 From: wxiaoguang Date: Sat, 1 Jul 2023 22:33:37 +0800 Subject: [PATCH] Update models/git/branch.go --- models/git/branch.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/models/git/branch.go b/models/git/branch.go index 92ef2b4689c8..88ed858b1939 100644 --- a/models/git/branch.go +++ b/models/git/branch.go @@ -101,7 +101,7 @@ func (err ErrBranchesEqual) Unwrap() error { type Branch struct { ID int64 RepoID int64 `xorm:"UNIQUE(s)"` - Name string `xorm:"UNIQUE(s) NOT NULL"` // git's ref-name is case-sensitive internally, however, in database, it's case-insensitive at the moment + Name string `xorm:"UNIQUE(s) NOT NULL"` // git's ref-name is case-sensitive internally, however, in some databases (mssql, mysql, by default), it's case-insensitive at the moment CommitID string CommitMessage string `xorm:"TEXT"` // it only stores the message summary (the first line) PusherID int64