fix: stop repeated allow_wallet_overflow column migration on restart (#5616)
This commit is contained in:
@@ -163,7 +163,7 @@ type SubscriptionPlan struct {
|
||||
AllowBalancePay *bool `json:"allow_balance_pay"`
|
||||
|
||||
// Allow falling back to wallet balance after subscription quota is exhausted (empty = true)
|
||||
AllowWalletOverflow *bool `json:"allow_wallet_overflow" gorm:"default:true"`
|
||||
AllowWalletOverflow *bool `json:"allow_wallet_overflow"`
|
||||
|
||||
StripePriceId string `json:"stripe_price_id" gorm:"type:varchar(128);default:''"`
|
||||
CreemProductId string `json:"creem_product_id" gorm:"type:varchar(128);default:''"`
|
||||
@@ -274,7 +274,7 @@ type UserSubscription struct {
|
||||
DowngradeGroup string `json:"downgrade_group" gorm:"type:varchar(64);default:''"`
|
||||
|
||||
// Whether wallet fallback is allowed after this subscription's quota is exhausted (snapshot from plan)
|
||||
AllowWalletOverflow bool `json:"allow_wallet_overflow" gorm:"default:true"`
|
||||
AllowWalletOverflow bool `json:"allow_wallet_overflow"`
|
||||
|
||||
CreatedAt int64 `json:"created_at" gorm:"bigint"`
|
||||
UpdatedAt int64 `json:"updated_at" gorm:"bigint"`
|
||||
|
||||
Reference in New Issue
Block a user