diff options
author | Andrey Nering <andrey.nering@gmail.com> | 2017-01-06 13:14:33 -0200 |
---|---|---|
committer | Lunny Xiao <xiaolunwen@gmail.com> | 2017-01-06 23:14:33 +0800 |
commit | 84b7d29d34e0d51e0c67e2e35803e8e611da7965 (patch) | |
tree | 0f8a47ffac337f37fdf48f1b34c44b2ca269dd63 /models/pull.go | |
parent | 1a7fc53c98f06f79955d217f91c8a5553e5a27b3 (diff) | |
download | gitea-84b7d29d34e0d51e0c67e2e35803e8e611da7965.tar.gz gitea-84b7d29d34e0d51e0c67e2e35803e8e611da7965.zip |
Create missing database indexes (#596)
Diffstat (limited to 'models/pull.go')
-rw-r--r-- | models/pull.go | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/models/pull.go b/models/pull.go index 6231b71cb7..8661fa3aa8 100644 --- a/models/pull.go +++ b/models/pull.go @@ -54,21 +54,21 @@ type PullRequest struct { Issue *Issue `xorm:"-"` Index int64 - HeadRepoID int64 + HeadRepoID int64 `xorm:"INDEX"` HeadRepo *Repository `xorm:"-"` - BaseRepoID int64 + BaseRepoID int64 `xorm:"INDEX"` BaseRepo *Repository `xorm:"-"` HeadUserName string HeadBranch string BaseBranch string MergeBase string `xorm:"VARCHAR(40)"` - HasMerged bool - MergedCommitID string `xorm:"VARCHAR(40)"` - MergerID int64 + HasMerged bool `xorm:"INDEX"` + MergedCommitID string `xorm:"VARCHAR(40)"` + MergerID int64 `xorm:"INDEX"` Merger *User `xorm:"-"` Merged time.Time `xorm:"-"` - MergedUnix int64 + MergedUnix int64 `xorm:"INDEX"` } // BeforeUpdate is invoked from XORM before updating an object of this type. |