Add preparatory upgrade code for 3.10 (#6337)
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
52b5c74a0f
Коммит
dc852a71c0
@@ -15,6 +15,7 @@ import (
|
||||
)
|
||||
|
||||
const (
|
||||
VERSION_3_10_0 = "3.10.0"
|
||||
VERSION_3_9_0 = "3.9.0"
|
||||
VERSION_3_8_0 = "3.8.0"
|
||||
VERSION_3_7_0 = "3.7.0"
|
||||
@@ -45,6 +46,7 @@ func UpgradeDatabase(sqlStore *SqlStore) {
|
||||
UpgradeDatabaseToVersion37(sqlStore)
|
||||
UpgradeDatabaseToVersion38(sqlStore)
|
||||
UpgradeDatabaseToVersion39(sqlStore)
|
||||
UpgradeDatabaseToVersion310(sqlStore)
|
||||
|
||||
// If the SchemaVersion is empty this this is the first time it has ran
|
||||
// so lets set it to the current version.
|
||||
@@ -262,3 +264,11 @@ func UpgradeDatabaseToVersion39(sqlStore *SqlStore) {
|
||||
saveSchemaVersion(sqlStore, VERSION_3_9_0)
|
||||
}
|
||||
}
|
||||
|
||||
func UpgradeDatabaseToVersion310(sqlStore *SqlStore) {
|
||||
// TODO: Uncomment following condition when version 3.10.0 is released
|
||||
//if shouldPerformUpgrade(sqlStore, VERSION_3_9_0, VERSION_3_10_0) {
|
||||
|
||||
// saveSchemaVersion(sqlStore, VERSION_3_10_0)
|
||||
//}
|
||||
}
|
||||
|
||||
Ссылка в новой задаче
Block a user