diff options
author | 6543 <6543@obermui.de> | 2020-06-09 22:34:05 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-09 16:34:05 -0400 |
commit | 363e51d19c7ae63a12554fbfb4dd4f59e87db339 (patch) | |
tree | 9a4268f55796fe07c387d7169925a5de46180a02 /models/migrations/v119.go | |
parent | aaff47ad75e167838a886126ddba0ad8f6f1d073 (diff) | |
download | gitea-363e51d19c7ae63a12554fbfb4dd4f59e87db339.tar.gz gitea-363e51d19c7ae63a12554fbfb4dd4f59e87db339.zip |
Refactor: Remove Dependencys from Migration v112-v119 (#11811)
* v119
* v116
* v112
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 } |