mirror of
https://github.com/QuantumNous/new-api.git
synced 2026-09-11 14:41:21 +00:00
fix: stop repeated allow_balance_pay column migration on restart (#5361)
This commit is contained in:
@@ -160,7 +160,7 @@ type SubscriptionPlan struct {
|
|||||||
Enabled bool `json:"enabled" gorm:"default:true"`
|
Enabled bool `json:"enabled" gorm:"default:true"`
|
||||||
SortOrder int `json:"sort_order" gorm:"type:int;default:0"`
|
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)
|
// 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" gorm:"default:true"`
|
||||||
|
|||||||
Reference in New Issue
Block a user