From 7431be2b7d68d7f797707362b9a1e41a3f232401 Mon Sep 17 00:00:00 2001 From: yanchao Date: Thu, 17 Mar 2022 15:45:29 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- models/repo_statistic.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/models/repo_statistic.go b/models/repo_statistic.go index f7c3029da..a9e9593af 100755 --- a/models/repo_statistic.go +++ b/models/repo_statistic.go @@ -17,7 +17,7 @@ type RepoStatistic struct { IsPrivate bool `json:"isPrivate"` IsMirror bool `json:"isMirror"` IsFork bool `json:"isFork"` - RepoCreatedUnix timeutil.TimeStamp `xorm:"NOT NULL" json:"createUnix"` + RepoCreatedUnix timeutil.TimeStamp `xorm:"NOT NULL DEFAULT 0" json:"createUnix"` Date string `xorm:"unique(s) NOT NULL" json:"date"` NumWatches int64 `xorm:"NOT NULL DEFAULT 0" json:"watch"` NumWatchesAdded int64 `xorm:"NOT NULL DEFAULT 0" json:"-"`