diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2019-08-05 22:29:40 +0800 |
---|---|---|
committer | Lauris BH <lauris@nix.lv> | 2019-08-05 17:29:40 +0300 |
commit | 7b009626da2a8a2a46e0e205a3a7ce46cdf7ced2 (patch) | |
tree | 3c81393f4592e1b3735740fd4453cf735da00dcd /models/repo.go | |
parent | 52feff5a5c76421fe90c8e6a62ec86eaaa4634f2 (diff) | |
download | gitea-7b009626da2a8a2a46e0e205a3a7ce46cdf7ced2.tar.gz gitea-7b009626da2a8a2a46e0e205a3a7ce46cdf7ced2.zip |
Add SQL execution on log and indexes on table repository and comment (#7740)
* add index on comment
* add SQL execution time on log and index owner_id on repository
* add migration
Diffstat (limited to 'models/repo.go')
-rw-r--r-- | models/repo.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/models/repo.go b/models/repo.go index 20175397af..86370821d3 100644 --- a/models/repo.go +++ b/models/repo.go @@ -129,7 +129,7 @@ func NewRepoContext() { // Repository represents a git repository. type Repository struct { ID int64 `xorm:"pk autoincr"` - OwnerID int64 `xorm:"UNIQUE(s)"` + OwnerID int64 `xorm:"UNIQUE(s) index"` OwnerName string `xorm:"-"` Owner *User `xorm:"-"` LowerName string `xorm:"UNIQUE(s) INDEX NOT NULL"` |