diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2022-12-13 22:03:14 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-13 22:03:14 +0800 |
commit | 0e95e7460e46fd353d0a9d07bb4e65d96a2a0177 (patch) | |
tree | 0f07f553e9c65def1a9e6936e609ff3b1bf18581 | |
parent | c057590a3aaafada6d8a17a7943a04e03a9cd6c4 (diff) | |
download | gitea-0e95e7460e46fd353d0a9d07bb4e65d96a2a0177.tar.gz gitea-0e95e7460e46fd353d0a9d07bb4e65d96a2a0177.zip |
Fix warn in database structs sync (#22111)
Fix #21880
-rw-r--r-- | models/repo/pushmirror.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/models/repo/pushmirror.go b/models/repo/pushmirror.go index 42dbaef3fd..a7727370d6 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"` |