Selaa lähdekoodia

fix: change gorm type int to bigint to avoid problem in MySQL (close #54)

JustSong 2 vuotta sitten
vanhempi
sitoutus
28f064eedf
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      model/message.go

+ 1 - 1
model/message.go

@@ -17,7 +17,7 @@ type Message struct {
 	Channel     string `json:"channel"`
 	Token       string `json:"token" gorm:"-:all"`
 	HTMLContent string `json:"html_content"  gorm:"-:all"`
-	Timestamp   int64  `json:"timestamp" gorm:"type:int64"`
+	Timestamp   int64  `json:"timestamp" gorm:"type:bigint"`
 	Link        string `json:"link" gorm:"unique;index"`
 	To          string `json:"to" gorm:"column:to"`     // if specified, will send to this user(s)
 	Status      int    `json:"status" gorm:"default:0"` // pending, sent, failed