用户界面设置中增加流量、带宽相关设置

This commit is contained in:
GoEdgeLab
2022-07-07 12:40:05 +08:00
parent 37a39d3765
commit 8445310a36
2 changed files with 58 additions and 1 deletions

View File

@@ -194,3 +194,23 @@ func TestUpgradeSQLData_v0_4_8(t *testing.T) {
}
t.Log("ok")
}
func TestUpgradeSQLData_v0_4_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 = upgradeV0_4_9(db)
if err != nil {
t.Fatal(err)
}
t.Log("ok")
}