summaryrefslogtreecommitdiffstats
path: root/routers/repo/setting.go
diff options
context:
space:
mode:
authorMorlinest <Morlinest@users.noreply.github.com>2017-10-02 22:22:25 +0200
committerLauris BH <lauris@nix.lv>2017-10-02 23:22:25 +0300
commita04718a2a6c2cfd46be17572b8220ee14b1bd1ac (patch)
tree017e127de6475b5d28c5e6ee5c8eb9123377135f /routers/repo/setting.go
parent46cc45f04967ac4e258daafb98a716bc5ac77a94 (diff)
downloadgitea-a04718a2a6c2cfd46be17572b8220ee14b1bd1ac.tar.gz
gitea-a04718a2a6c2cfd46be17572b8220ee14b1bd1ac.zip
Remove repo unit index (#2621)
* Remove repo unit index * Fix sqlite
Diffstat (limited to 'routers/repo/setting.go')
-rw-r--r--routers/repo/setting.go6
1 files changed, 0 insertions, 6 deletions
diff --git a/routers/repo/setting.go b/routers/repo/setting.go
index eb4136b07d..ebe1c7cd9e 100644
--- a/routers/repo/setting.go
+++ b/routers/repo/setting.go
@@ -149,7 +149,6 @@ func SettingsPost(ctx *context.Context, form auth.RepoSettingForm) {
units = append(units, models.RepoUnit{
RepoID: repo.ID,
Type: tp,
- Index: int(tp),
Config: new(models.UnitConfig),
})
}
@@ -165,7 +164,6 @@ func SettingsPost(ctx *context.Context, form auth.RepoSettingForm) {
units = append(units, models.RepoUnit{
RepoID: repo.ID,
Type: models.UnitTypeExternalWiki,
- Index: int(models.UnitTypeExternalWiki),
Config: &models.ExternalWikiConfig{
ExternalWikiURL: form.ExternalWikiURL,
},
@@ -174,7 +172,6 @@ func SettingsPost(ctx *context.Context, form auth.RepoSettingForm) {
units = append(units, models.RepoUnit{
RepoID: repo.ID,
Type: models.UnitTypeWiki,
- Index: int(models.UnitTypeWiki),
Config: new(models.UnitConfig),
})
}
@@ -190,7 +187,6 @@ func SettingsPost(ctx *context.Context, form auth.RepoSettingForm) {
units = append(units, models.RepoUnit{
RepoID: repo.ID,
Type: models.UnitTypeExternalTracker,
- Index: int(models.UnitTypeExternalTracker),
Config: &models.ExternalTrackerConfig{
ExternalTrackerURL: form.ExternalTrackerURL,
ExternalTrackerFormat: form.TrackerURLFormat,
@@ -201,7 +197,6 @@ func SettingsPost(ctx *context.Context, form auth.RepoSettingForm) {
units = append(units, models.RepoUnit{
RepoID: repo.ID,
Type: models.UnitTypeIssues,
- Index: int(models.UnitTypeIssues),
Config: &models.IssuesConfig{
EnableTimetracker: form.EnableTimetracker,
AllowOnlyContributorsToTrackTime: form.AllowOnlyContributorsToTrackTime,
@@ -214,7 +209,6 @@ func SettingsPost(ctx *context.Context, form auth.RepoSettingForm) {
units = append(units, models.RepoUnit{
RepoID: repo.ID,
Type: models.UnitTypePullRequests,
- Index: int(models.UnitTypePullRequests),
Config: new(models.UnitConfig),
})
}