Browse Source

Merge pull request '修复bug' (#1673) from fix-1657 into V20220328

Reviewed-on: https://git.openi.org.cn/OpenI/aiforge/pulls/1673
Reviewed-by: lewis <747342561@qq.com>
tags/v1.22.3.2^2
lewis 3 years ago
parent
commit
73e075631a
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