models: remove redundant tags for primary keys

This commit is contained in:
Unknwon
2017-05-21 04:36:41 -04:00
parent 1755025e7f
commit ce6e8ed8fe
22 changed files with 59 additions and 59 deletions

View File

@@ -15,8 +15,8 @@ import (
"github.com/go-xorm/xorm"
log "gopkg.in/clog.v1"
"github.com/gogits/gogs/pkg/tool"
"github.com/gogits/gogs/pkg/setting"
"github.com/gogits/gogs/pkg/tool"
)
type NoticeType int
@@ -27,7 +27,7 @@ const (
// Notice represents a system notice for admin.
type Notice struct {
ID int64 `xorm:"pk autoincr"`
ID int64
Type NoticeType
Description string `xorm:"TEXT"`
Created time.Time `xorm:"-"`