fix migration

This commit is contained in:
qwerty287 2024-11-11 08:46:28 +02:00
parent 8708a4ba39
commit ec4db4da65
No known key found for this signature in database
2 changed files with 2 additions and 1 deletions

View file

@ -23,7 +23,7 @@ var removeRepoScm = xormigrate.Migration{
ID: "remove-repo-scm",
MigrateSession: func(sess *xorm.Session) (err error) {
type repos struct {
SCMKind string `xorm:"varchar(50) 'repo_scm'"`
SCMKind string `xorm:"varchar(50) 'scm'"`
}
// ensure columns to drop exist

View file

@ -47,6 +47,7 @@ var migrationTasks = []*xormigrate.Migration{
&addCustomLabelsToAgent,
&splitTrusted,
&correctPotentialCorruptOrgsUsersRelation,
&removeRepoScm,
}
var allBeans = []any{