diff options
author | wxiaoguang <wxiaoguang@gmail.com> | 2023-07-02 02:00:10 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-01 14:00:10 -0400 |
commit | cea9401634cedb8daa3f51614684e8de9a31213b (patch) | |
tree | 71cd68a70737aea0964f43d256cb558d9cba11db /models | |
parent | 469d89b95a1ce18dd34808a95c7230375e828e24 (diff) | |
download | gitea-cea9401634cedb8daa3f51614684e8de9a31213b.tar.gz gitea-cea9401634cedb8daa3f51614684e8de9a31213b.zip |
Following-up improvments for various PRs (#25620)
For:
* #22743
* #25408
* #25412
* #25588
Diffstat (limited to 'models')
-rw-r--r-- | models/git/branch.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/models/git/branch.go b/models/git/branch.go index 255b230b51..88ed858b19 100644 --- a/models/git/branch.go +++ b/models/git/branch.go @@ -101,9 +101,9 @@ func (err ErrBranchesEqual) Unwrap() error { type Branch struct { ID int64 RepoID int64 `xorm:"UNIQUE(s)"` - Name string `xorm:"UNIQUE(s) NOT NULL"` + 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"` + CommitMessage string `xorm:"TEXT"` // it only stores the message summary (the first line) PusherID int64 Pusher *user_model.User `xorm:"-"` IsDeleted bool `xorm:"index"` |