1
0
Fork 0
forked from forgejo/forgejo

Refactor: Remove Dependencys from Migration v112-v119 (#11811)

* v119

* v116

* v112
This commit is contained in:
6543 2020-06-09 22:34:05 +02:00 committed by GitHub
parent aaff47ad75
commit 363e51d19c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 18 additions and 8 deletions

View file

@ -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
}