Skip to content

Commit

Permalink
Skip gorm inserting values to sequence field (#645)
Browse files Browse the repository at this point in the history
  • Loading branch information
lpoli authored Apr 21, 2022
1 parent 9d6fe7b commit c817165
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/go/0chain.net/blobbercore/challenge/entity.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ type ChallengeEntity struct {
ValidationTickets []*ValidationTicket `gorm:"-" json:"validation_tickets"`
ObjectPathString datatypes.JSON `gorm:"column:object_path" json:"-"`
ObjectPath *reference.ObjectPath `gorm:"-" json:"object_path"`
Sequence int64 `gorm:"column:sequence;unique;type:bigserial"`
Sequence int64 `gorm:"column:sequence;unique;type:bigserial;<-:false"`
Created common.Timestamp `gorm:"-" json:"created"`

CreatedAt time.Time `gorm:"created_at;type:timestamp without time zone;not null;default:now()"`
Expand Down

0 comments on commit c817165

Please sign in to comment.