Skip to content

Commit e35bbb2

Browse files
committed
add default value.
Signed-off-by: Bo-Yi Wu <[email protected]>
1 parent e7d605c commit e35bbb2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

models/attachment.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@ type Attachment struct {
2323
ID int64 `xorm:"pk autoincr"`
2424
UUID string `xorm:"uuid UNIQUE"`
2525
IssueID int64 `xorm:"INDEX"`
26+
ReleaseID int64 `xorm:"INDEX"`
2627
CommentID int64
27-
ReleaseID int64 `xorm:"INDEX"`
2828
Name string
29-
DownloadCount int64
29+
DownloadCount int64 `xorm:"DEFAULT 0"`
3030
Created time.Time `xorm:"-"`
3131
CreatedUnix int64
3232
}

0 commit comments

Comments
 (0)