summaryrefslogtreecommitdiffstats
path: root/models/migrations/v16.go
diff options
context:
space:
mode:
Diffstat (limited to 'models/migrations/v16.go')
-rw-r--r--models/migrations/v16.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/models/migrations/v16.go b/models/migrations/v16.go
index 9cd4ef4da2..2a6d71de41 100644
--- a/models/migrations/v16.go
+++ b/models/migrations/v16.go
@@ -19,9 +19,9 @@ type RepoUnit struct {
RepoID int64 `xorm:"INDEX(s)"`
Type int `xorm:"INDEX(s)"`
Index int
- Config map[string]string `xorm:"JSON"`
- CreatedUnix int64 `xorm:"INDEX CREATED"`
- Created time.Time `xorm:"-"`
+ Config map[string]interface{} `xorm:"JSON"`
+ CreatedUnix int64 `xorm:"INDEX CREATED"`
+ Created time.Time `xorm:"-"`
}
// Enumerate all the unit types
@@ -95,7 +95,7 @@ func addUnitsToTables(x *xorm.Engine) error {
continue
}
- var config = make(map[string]string)
+ var config = make(map[string]interface{})
switch i {
case V16UnitTypeExternalTracker:
config["ExternalTrackerURL"] = repo.ExternalTrackerURL