From fae39cd90d97ccad58b730f52ad0f2dd79a3485f Mon Sep 17 00:00:00 2001 From: skynono Date: Sat, 20 Jun 2026 12:41:02 +0800 Subject: [PATCH] fix: stop repeated allow_balance_pay column migration on restart (#5361) --- model/subscription.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/model/subscription.go b/model/subscription.go index 12e4a02c..1e50c3b0 100644 --- a/model/subscription.go +++ b/model/subscription.go @@ -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"`