mirror of
https://github.com/dnote/dnote
synced 2026-03-14 22:45:50 +01:00
Remove obsolete columns (#470)
This commit is contained in:
parent
6acc2936e3
commit
a060176cbb
2 changed files with 14 additions and 7 deletions
|
|
@ -0,0 +1,9 @@
|
|||
-- remove-billing-columns.sql drops billing related columns that are now obsolete.
|
||||
|
||||
-- +migrate Up
|
||||
|
||||
ALTER TABLE users DROP COLUMN IF EXISTS stripe_customer_id;
|
||||
ALTER TABLE users DROP COLUMN IF EXISTS billing_country;
|
||||
|
||||
-- +migrate Down
|
||||
|
||||
|
|
@ -65,13 +65,11 @@ type Note struct {
|
|||
// User is a model for a user
|
||||
type User struct {
|
||||
Model
|
||||
UUID string `json:"uuid" gorm:"type:uuid;index;default:uuid_generate_v4()"`
|
||||
StripeCustomerID string `json:"-"`
|
||||
BillingCountry string `json:"-"`
|
||||
Account Account
|
||||
LastLoginAt *time.Time `json:"-"`
|
||||
MaxUSN int `json:"-" gorm:"default:0"`
|
||||
Cloud bool `json:"-" gorm:"default:false"`
|
||||
UUID string `json:"uuid" gorm:"type:uuid;index;default:uuid_generate_v4()"`
|
||||
Account Account
|
||||
LastLoginAt *time.Time `json:"-"`
|
||||
MaxUSN int `json:"-" gorm:"default:0"`
|
||||
Cloud bool `json:"-" gorm:"default:false"`
|
||||
}
|
||||
|
||||
// Account is a model for an account
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue