diff --git a/pkg/db/mysql.go b/pkg/db/mysql.go index f7c4d79..0c8d781 100644 --- a/pkg/db/mysql.go +++ b/pkg/db/mysql.go @@ -90,6 +90,11 @@ func loadMysqlConn(conn string) *gorm.DB { fmt.Println(err) } } + if db.Migrator().HasColumn(&model.BundleOrderRecords{}, "order_type") == false { + if err := db.Migrator().AddColumn(&model.BundleOrderRecords{}, "order_type"); err != nil { + fmt.Println(err) + } + } if db.Migrator().HasColumn(&model.Reconciliation{}, "antom_num") == false { if err := db.Migrator().AddColumn(&model.Reconciliation{}, "antom_num"); err != nil { fmt.Println(err)