diff options
author | Morlinest <Morlinest@users.noreply.github.com> | 2017-10-02 22:22:25 +0200 |
---|---|---|
committer | Lauris BH <lauris@nix.lv> | 2017-10-02 23:22:25 +0300 |
commit | a04718a2a6c2cfd46be17572b8220ee14b1bd1ac (patch) | |
tree | 017e127de6475b5d28c5e6ee5c8eb9123377135f /models/repo_unit.go | |
parent | 46cc45f04967ac4e258daafb98a716bc5ac77a94 (diff) | |
download | gitea-a04718a2a6c2cfd46be17572b8220ee14b1bd1ac.tar.gz gitea-a04718a2a6c2cfd46be17572b8220ee14b1bd1ac.zip |
Remove repo unit index (#2621)
* Remove repo unit index
* Fix sqlite
Diffstat (limited to 'models/repo_unit.go')
-rw-r--r-- | models/repo_unit.go | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/models/repo_unit.go b/models/repo_unit.go index cb647fd406..3f0e65f9ab 100644 --- a/models/repo_unit.go +++ b/models/repo_unit.go @@ -16,9 +16,8 @@ import ( // RepoUnit describes all units of a repository type RepoUnit struct { ID int64 - RepoID int64 `xorm:"INDEX(s)"` - Type UnitType `xorm:"INDEX(s)"` - Index int + RepoID int64 `xorm:"INDEX(s)"` + Type UnitType `xorm:"INDEX(s)"` Config core.Conversion `xorm:"TEXT"` CreatedUnix int64 `xorm:"INDEX CREATED"` Created time.Time `xorm:"-"` |