From 0e95e7460e46fd353d0a9d07bb4e65d96a2a0177 Mon Sep 17 00:00:00 2001 From: Lunny Xiao Date: Tue, 13 Dec 2022 22:03:14 +0800 Subject: [PATCH] Fix warn in database structs sync (#22111) Fix #21880 --- models/repo/pushmirror.go | 1 + 1 file changed, 1 insertion(+) diff --git a/models/repo/pushmirror.go b/models/repo/pushmirror.go index 42dbaef3fd6a..a7727370d6b7 100644 --- a/models/repo/pushmirror.go +++ b/models/repo/pushmirror.go @@ -23,6 +23,7 @@ type PushMirror struct { Repo *Repository `xorm:"-"` RemoteName string + SyncOnCommit bool `xorm:"NOT NULL DEFAULT true"` Interval time.Duration CreatedUnix timeutil.TimeStamp `xorm:"created"` LastUpdateUnix timeutil.TimeStamp `xorm:"INDEX last_update"`