diff --git a/internal/model/bundle_order_records.go b/internal/model/bundle_order_records.go index 4374d6a..c4248e1 100644 --- a/internal/model/bundle_order_records.go +++ b/internal/model/bundle_order_records.go @@ -9,7 +9,7 @@ import ( // BundleOrderRecords struct type BundleOrderRecords struct { gorm.Model - UUID string `json:"uuid" gorm:"column:uuid;type:varchar(128);comment:UUID"` + UUID string `json:"uuid" gorm:"column:uuid;type:varchar(1024);comment:UUID"` OrderNo string `json:"orderNo" gorm:"column:order_no;type:varchar(1024);comment:交易编号"` BundleUUID string `json:"bundleUUID" gorm:"column:bundle_uuid;type:varchar(1024);comment:套餐UUID"` BundleName string `json:"bundleName" gorm:"column:bundle_name;type:varchar(2048);comment:套餐名"` diff --git a/pkg/db/mysql.go b/pkg/db/mysql.go index e2bbaa1..6b3421b 100644 --- a/pkg/db/mysql.go +++ b/pkg/db/mysql.go @@ -47,7 +47,7 @@ func loadMysqlConn(conn string) *gorm.DB { // Bundle数据库的自动迁移 err = db.AutoMigrate( &model.BundleProfile{}, - &model.BundleOrderRecords{}, + //&model.BundleOrderRecords{}, &model.ValueAddBundleProfile{}, //&model.ValueAddBundleRecord{} &model.BundleProfileLang{},