Browse Source

修复bug

tags/v1.22.3.2^2
yanchao 3 years ago
parent
commit
7431be2b7d
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      models/repo_statistic.go

+ 1
- 1
models/repo_statistic.go View File

@@ -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:"-"`


Loading…
Cancel
Save