Skip to content

Commit 0e95e74

Browse files
authored
Fix warn in database structs sync (#22111)
Fix #21880
1 parent c057590 commit 0e95e74

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

models/repo/pushmirror.go

+1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ type PushMirror struct {
2323
Repo *Repository `xorm:"-"`
2424
RemoteName string
2525

26+
SyncOnCommit bool `xorm:"NOT NULL DEFAULT true"`
2627
Interval time.Duration
2728
CreatedUnix timeutil.TimeStamp `xorm:"created"`
2829
LastUpdateUnix timeutil.TimeStamp `xorm:"INDEX last_update"`

0 commit comments

Comments
 (0)