版本号修改0.3.1

This commit is contained in:
GoEdgeLab
2021-09-08 17:31:18 +08:00
parent ad20b7c243
commit b908050e5c
3 changed files with 14 additions and 2 deletions

View File

@@ -1,7 +1,7 @@
package teaconst package teaconst
const ( const (
Version = "0.3.0" Version = "0.3.1"
ProductName = "Edge API" ProductName = "Edge API"
ProcessName = "edge-api" ProcessName = "edge-api"
@@ -23,4 +23,5 @@ const (
AuthorityNodeVersion = "0.0.2" AuthorityNodeVersion = "0.0.2"
MonitorNodeVersion = "0.0.3" MonitorNodeVersion = "0.0.3"
DNSNodeVersion = "0.2.0" DNSNodeVersion = "0.2.0"
ReportNodeVersion = "0.1.0"
) )

File diff suppressed because one or more lines are too long

View File

@@ -49,6 +49,9 @@ var upgradeFuncs = []*upgradeVersion{
{ {
"0.3.0", upgradeV0_3_0, "0.3.0", upgradeV0_3_0,
}, },
{
"0.3.1", upgradeV0_3_1,
},
} }
// UpgradeSQLData 升级SQL数据 // UpgradeSQLData 升级SQL数据
@@ -361,3 +364,11 @@ func upgradeV0_3_0(db *dbs.DB) error {
} }
return nil return nil
} }
// v0.3.1
func upgradeV0_3_1(db *dbs.DB) error {
// 忽略错误
_, _ = db.Exec("TRUNCATE table edgeServerDomainHourlyStats")
return nil
}