upgrade DB for 5.35 (#17488)
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
9cd50a4e22
Коммит
246e4f9508
@@ -13,6 +13,7 @@ import (
|
||||
// It should be maintained in chronological order with most current
|
||||
// release at the front of the list.
|
||||
var versions = []string{
|
||||
"5.35.0",
|
||||
"5.34.0",
|
||||
"5.33.0",
|
||||
"5.32.0",
|
||||
|
||||
@@ -19,7 +19,7 @@ import (
|
||||
)
|
||||
|
||||
const (
|
||||
CurrentSchemaVersion = Version5340
|
||||
CurrentSchemaVersion = Version5350
|
||||
Version5350 = "5.35.0"
|
||||
Version5340 = "5.34.0"
|
||||
Version5330 = "5.33.0"
|
||||
@@ -1033,7 +1033,7 @@ func upgradeDatabaseToVersion534(sqlStore *SqlStore) {
|
||||
}
|
||||
|
||||
func upgradeDatabaseToVersion535(sqlStore *SqlStore) {
|
||||
// if shouldPerformUpgrade(sqlStore, Version5340, Version5350) {
|
||||
if shouldPerformUpgrade(sqlStore, Version5340, Version5350) {
|
||||
sqlStore.AlterColumnTypeIfExists("Roles", "Permissions", "longtext", "text")
|
||||
|
||||
sqlStore.CreateColumnIfNotExists("SidebarCategories", "Collapsed", "tinyint(1)", "boolean", "0")
|
||||
@@ -1057,8 +1057,8 @@ func upgradeDatabaseToVersion535(sqlStore *SqlStore) {
|
||||
|
||||
rootCountMigration(sqlStore)
|
||||
|
||||
// saveSchemaVersion(sqlStore, Version5350)
|
||||
// }
|
||||
saveSchemaVersion(sqlStore, Version5350)
|
||||
}
|
||||
}
|
||||
|
||||
func rootCountMigration(sqlStore *SqlStore) {
|
||||
|
||||
Ссылка в новой задаче
Block a user