Update mysql.go
This commit is contained in:
parent
26ebd81bcf
commit
87fc823c1c
@ -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)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user