mirror of
https://github.com/go-gitea/gitea.git
synced 2024-12-16 02:09:18 +08:00
c8602a8dfa
Reported at https://codeberg.org/forgejo/forgejo/issues/1677
This column is used by
[deleteUser](f089be91da/services/user/delete.go (L90)
).
Note: This PR contains a Migration, so we can't backport it to 1.21.
17 lines
309 B
Go
17 lines
309 B
Go
// Copyright 2023 The Gitea Authors. All rights reserved.
|
|
// SPDX-License-Identifier: MIT
|
|
|
|
package v1_22 //nolint
|
|
|
|
import (
|
|
"xorm.io/xorm"
|
|
)
|
|
|
|
func AddIndexToPullAutoMergeDoerID(x *xorm.Engine) error {
|
|
type PullAutoMerge struct {
|
|
DoerID int64 `xorm:"INDEX NOT NULL"`
|
|
}
|
|
|
|
return x.Sync(&PullAutoMerge{})
|
|
}
|