fix: stop repeated allow_balance_pay column migration on restart (#5361)

This commit is contained in:
skynono
2026-06-20 12:41:02 +08:00
committed by GitHub
parent 2c2d92116f
commit fae39cd90d
+1 -1
View File
@@ -160,7 +160,7 @@ type SubscriptionPlan struct {
Enabled bool `json:"enabled" gorm:"default:true"`
SortOrder int `json:"sort_order" gorm:"type:int;default:0"`
AllowBalancePay *bool `json:"allow_balance_pay" gorm:"default:true"`
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"`