mirror of
https://github.com/halejohn/Cloudreve.git
synced 2026-01-26 17:41:57 +08:00
Modify: move aria2 into internal packages / migration version check
This commit is contained in:
@@ -1,12 +1,7 @@
|
||||
package conf
|
||||
|
||||
import "io/ioutil"
|
||||
// BackendVersion 当前后端版本号
|
||||
const BackendVersion = string("3.0.0-beta1")
|
||||
|
||||
// 当前后端版本号
|
||||
const BackendVersion = string("3.0.0-b")
|
||||
|
||||
// WriteVersionLock 将当前版本信息写入 version.lock
|
||||
func WriteVersionLock() error {
|
||||
err := ioutil.WriteFile("version.lock", []byte(BackendVersion), 0644)
|
||||
return err
|
||||
}
|
||||
// RequiredDBVersion 与当前版本匹配的数据库版本
|
||||
const RequiredDBVersion = string("3.0.0-beta1")
|
||||
|
||||
Reference in New Issue
Block a user