Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
phsl
/
new-api
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Unverified
Commit
dfcb74b5
authored
Jun 20, 2026
by
skynono
Committed by
GitHub
Jun 20, 2026
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: stop repeated allow_wallet_overflow column migration on restart (#5616)
parent
fae39cd9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
model/subscription.go
+2
-2
No files found.
model/subscription.go
View file @
dfcb74b5
...
@@ -163,7 +163,7 @@ type SubscriptionPlan struct {
...
@@ -163,7 +163,7 @@ type SubscriptionPlan struct {
AllowBalancePay
*
bool
`json:"allow_balance_pay"`
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"`
StripePriceId
string
`json:"stripe_price_id" gorm:"type:varchar(128);default:''"`
StripePriceId
string
`json:"stripe_price_id" gorm:"type:varchar(128);default:''"`
CreemProductId
string
`json:"creem_product_id" gorm:"type:varchar(128);default:''"`
CreemProductId
string
`json:"creem_product_id" gorm:"type:varchar(128);default:''"`
...
@@ -274,7 +274,7 @@ type UserSubscription struct {
...
@@ -274,7 +274,7 @@ type UserSubscription struct {
DowngradeGroup
string
`json:"downgrade_group" gorm:"type:varchar(64);default:''"`
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)
// 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"`
CreatedAt
int64
`json:"created_at" gorm:"bigint"`
UpdatedAt
int64
`json:"updated_at" gorm:"bigint"`
UpdatedAt
int64
`json:"updated_at" gorm:"bigint"`
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment