mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-07-24 20:19:39 +02:00
17 lines
368 B
Go
17 lines
368 B
Go
|
// Copyright 2025 The Forgejo Authors. All rights reserved.
|
||
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
||
|
|
||
|
package forgejo_migrations
|
||
|
|
||
|
import (
|
||
|
"xorm.io/xorm"
|
||
|
)
|
||
|
|
||
|
func AddPushMirrorBranchFilter(x *xorm.Engine) error {
|
||
|
type PushMirror struct {
|
||
|
ID int64 `xorm:"pk autoincr"`
|
||
|
BranchFilter string `xorm:"VARCHAR(255)"`
|
||
|
}
|
||
|
return x.Sync2(new(PushMirror))
|
||
|
}
|