From 10f336ec66ee4430aefed7dc1484b18352730037 Mon Sep 17 00:00:00 2001 From: JNG <365252428@qq.com> Date: Thu, 25 Dec 2025 18:59:03 +0800 Subject: [PATCH] 11 --- internal/model/bundle_order_records.go | 2 +- pkg/db/mysql.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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{},