mirror of
				https://github.com/TeaOSLab/EdgeAPI.git
				synced 2025-11-04 16:00:24 +08:00 
			
		
		
		
	版本号修改0.3.1
This commit is contained in:
		@@ -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
											
										
									
								
							@@ -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
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user