Этот коммит содержится в:
Carlos Tadeu Panato Junior
2021-04-23 15:28:01 +02:00
коммит произвёл GitHub
родитель 9cd50a4e22
Коммит 246e4f9508
2 изменённых файлов: 25 добавлений и 24 удалений

Просмотреть файл

@@ -13,6 +13,7 @@ import (
// It should be maintained in chronological order with most current // It should be maintained in chronological order with most current
// release at the front of the list. // release at the front of the list.
var versions = []string{ var versions = []string{
"5.35.0",
"5.34.0", "5.34.0",
"5.33.0", "5.33.0",
"5.32.0", "5.32.0",

Просмотреть файл

@@ -19,7 +19,7 @@ import (
) )
const ( const (
CurrentSchemaVersion = Version5340 CurrentSchemaVersion = Version5350
Version5350 = "5.35.0" Version5350 = "5.35.0"
Version5340 = "5.34.0" Version5340 = "5.34.0"
Version5330 = "5.33.0" Version5330 = "5.33.0"
@@ -1033,7 +1033,7 @@ func upgradeDatabaseToVersion534(sqlStore *SqlStore) {
} }
func upgradeDatabaseToVersion535(sqlStore *SqlStore) { func upgradeDatabaseToVersion535(sqlStore *SqlStore) {
// if shouldPerformUpgrade(sqlStore, Version5340, Version5350) { if shouldPerformUpgrade(sqlStore, Version5340, Version5350) {
sqlStore.AlterColumnTypeIfExists("Roles", "Permissions", "longtext", "text") sqlStore.AlterColumnTypeIfExists("Roles", "Permissions", "longtext", "text")
sqlStore.CreateColumnIfNotExists("SidebarCategories", "Collapsed", "tinyint(1)", "boolean", "0") sqlStore.CreateColumnIfNotExists("SidebarCategories", "Collapsed", "tinyint(1)", "boolean", "0")
@@ -1057,8 +1057,8 @@ func upgradeDatabaseToVersion535(sqlStore *SqlStore) {
rootCountMigration(sqlStore) rootCountMigration(sqlStore)
// saveSchemaVersion(sqlStore, Version5350) saveSchemaVersion(sqlStore, Version5350)
// } }
} }
func rootCountMigration(sqlStore *SqlStore) { func rootCountMigration(sqlStore *SqlStore) {