diff options
Diffstat (limited to 'models/migrations/v119.go')
-rw-r--r-- | models/migrations/v119.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/models/migrations/v119.go b/models/migrations/v119.go index 746a04ead4..9622ff587c 100644 --- a/models/migrations/v119.go +++ b/models/migrations/v119.go @@ -5,12 +5,12 @@ package migrations import ( - "code.gitea.io/gitea/modules/structs" - "xorm.io/xorm" ) func fixMigratedRepositoryServiceType(x *xorm.Engine) error { - _, err := x.Exec("UPDATE repository SET original_service_type = ? WHERE original_url LIKE 'https://github.com/%'", structs.GithubService) + // structs.GithubService: + // GithubService = 2 + _, err := x.Exec("UPDATE repository SET original_service_type = ? WHERE original_url LIKE 'https://github.com/%'", 2) return err } |