From 944cb868b55315338561406f07ba842b00ca5a9e Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Mon, 11 Mar 2024 07:57:09 -0400 Subject: [PATCH] refactor: increase decimal to 30,20 --- db/models/sc_price_history.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/db/models/sc_price_history.go b/db/models/sc_price_history.go index 2c2e9e0..af7573b 100644 --- a/db/models/sc_price_history.go +++ b/db/models/sc_price_history.go @@ -18,7 +18,7 @@ func init() { type SCPriceHistory struct { gorm.Model CreatedAt time.Time `gorm:"index:idx_rate"` - Rate decimal.Decimal `gorm:"type:DECIMAL(10,20);index:idx_rate"` + Rate decimal.Decimal `gorm:"type:DECIMAL(30,20);index:idx_rate"` } func (SCPriceHistory) TableName() string {