升级原有gzip配置到compression配置

This commit is contained in:
GoEdgeLab
2021-09-29 20:12:53 +08:00
parent fa053eecf3
commit 13d1652677
2 changed files with 118 additions and 0 deletions

View File

@@ -36,4 +36,20 @@ func TestUpgradeSQLData_v1_3_1(t *testing.T) {
t.Fatal(err)
}
t.Log("ok")
}
func TestUpgradeSQLData_v1_3_2(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)
}
err = upgradeV0_3_2(db)
if err != nil {
t.Fatal(err)
}
t.Log("ok")
}