优化套餐升级程序

This commit is contained in:
刘祥超
2023-09-06 18:01:41 +08:00
parent 9e481d31ac
commit 794c3bc132
3 changed files with 5 additions and 40 deletions

View File

@@ -270,22 +270,3 @@ func TestUpgradeSQLData_v1_2_1(t *testing.T) {
}
t.Log("ok")
}
func TestUpgradeSQLData_v1_2_9(t *testing.T) {
db, err := dbs.NewInstanceFromConfig(&dbs.DBConfig{
Driver: "mysql",
Dsn: "root:123456@tcp(127.0.0.1:3306)/db_edge?charset=utf8mb4&timeout=30s",
Prefix: "edge",
})
if err != nil {
t.Fatal(err)
}
defer func() {
_ = db.Close()
}()
err = upgradeV1_2_9(db)
if err != nil {
t.Fatal(err)
}
t.Log("ok")
}