Remove repo unit index (#2621)

* Remove repo unit index

* Fix sqlite
This commit is contained in:
Morlinest
2017-10-02 22:22:25 +02:00
committed by Lauris BH
parent 46cc45f049
commit a04718a2a6
6 changed files with 33 additions and 22 deletions

View File

@ -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:"-"`