1
1
mirror of https://github.com/go-gitea/gitea synced 2025-07-22 18:28:37 +00:00

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