Skip to content

Commit

Permalink
fix[tidb]:inscriptions schema
Browse files Browse the repository at this point in the history
  • Loading branch information
fishTsai20 committed Jan 23, 2024
1 parent 1d92213 commit cf39890
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions handlers/indexer.go
Original file line number Diff line number Diff line change
Expand Up @@ -454,12 +454,12 @@ func mintToken(asc20 *model.Asc20, params map[string]string) (int8, error) {
}

if token.Minted.Cmp(token.Max) == 0 {
token.CompletedAt = uint64(time.Now().Unix())
token.CompletedAt = asc20.Timestamp
}
if newHolder {
token.Holders++
}
token.UpdatedAt = uint64(time.Now().Unix())
token.UpdatedAt = asc20.Timestamp

return 1, err
}
Expand Down
2 changes: 1 addition & 1 deletion model/inscription.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ type Inscription struct {
Idx uint32 `gorm:"column:idx"`
Timestamp uint64 `gorm:"column:timestamp"`
ContentType string `gorm:"column:content_type"`
Content string `gorm:"column:content;type:blob"`
Content string `gorm:"column:content;type:MEDIUMBLOB"`
}

func (Inscription) TableName() string {
Expand Down

0 comments on commit cf39890

Please sign in to comment.