db: upgrade db to 5.36 (#17687)
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
02d60a9b93
Коммит
fff09bf210
@@ -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.36.0",
|
||||||
"5.35.0",
|
"5.35.0",
|
||||||
"5.34.0",
|
"5.34.0",
|
||||||
"5.33.0",
|
"5.33.0",
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
CurrentSchemaVersion = Version5350
|
CurrentSchemaVersion = Version5360
|
||||||
Version5360 = "5.36.0"
|
Version5360 = "5.36.0"
|
||||||
Version5350 = "5.35.0"
|
Version5350 = "5.35.0"
|
||||||
Version5340 = "5.34.0"
|
Version5340 = "5.34.0"
|
||||||
@@ -1077,14 +1077,13 @@ func upgradeDatabaseToVersion535(sqlStore *SqlStore) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func upgradeDatabaseToVersion536(sqlStore *SqlStore) {
|
func upgradeDatabaseToVersion536(sqlStore *SqlStore) {
|
||||||
//if shouldPerformUpgrade(sqlStore, Version5350, Version5360) {
|
if shouldPerformUpgrade(sqlStore, Version5350, Version5360) {
|
||||||
|
sqlStore.CreateColumnIfNotExists("SharedChannelUsers", "ChannelId", "VARCHAR(26)", "VARCHAR(26)", "")
|
||||||
|
sqlStore.CreateColumnIfNotExists("SharedChannelRemotes", "LastPostUpdateAt", "bigint", "bigint", "0")
|
||||||
|
sqlStore.CreateColumnIfNotExists("SharedChannelRemotes", "LastPostId", "VARCHAR(26)", "VARCHAR(26)", "")
|
||||||
|
|
||||||
sqlStore.CreateColumnIfNotExists("SharedChannelUsers", "ChannelId", "VARCHAR(26)", "VARCHAR(26)", "")
|
saveSchemaVersion(sqlStore, Version5360)
|
||||||
sqlStore.CreateColumnIfNotExists("SharedChannelRemotes", "LastPostUpdateAt", "bigint", "bigint", "0")
|
}
|
||||||
sqlStore.CreateColumnIfNotExists("SharedChannelRemotes", "LastPostId", "VARCHAR(26)", "VARCHAR(26)", "")
|
|
||||||
|
|
||||||
//saveSchemaVersion(sqlStore, Version5360)
|
|
||||||
//}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func rootCountMigration(sqlStore *SqlStore) {
|
func rootCountMigration(sqlStore *SqlStore) {
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user