upgrade db to 5.6.0 (#9880)
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
7663de06bb
Коммит
7253b2c59c
@@ -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.6.0",
|
||||||
"5.5.0",
|
"5.5.0",
|
||||||
"5.4.0",
|
"5.4.0",
|
||||||
"5.3.0",
|
"5.3.0",
|
||||||
|
|||||||
@@ -515,8 +515,7 @@ func UpgradeDatabaseToVersion55(sqlStore SqlStore) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func UpgradeDatabaseToVersion56(sqlStore SqlStore) {
|
func UpgradeDatabaseToVersion56(sqlStore SqlStore) {
|
||||||
// TODO: Uncomment following condition when version 5.6.0 is released
|
if shouldPerformUpgrade(sqlStore, VERSION_5_5_0, VERSION_5_6_0) {
|
||||||
//if shouldPerformUpgrade(sqlStore, VERSION_5_5_0, VERSION_5_6_0) {
|
|
||||||
sqlStore.CreateColumnIfNotExists("PluginKeyValueStore", "ExpireAt", "bigint(20)", "bigint", "0")
|
sqlStore.CreateColumnIfNotExists("PluginKeyValueStore", "ExpireAt", "bigint(20)", "bigint", "0")
|
||||||
|
|
||||||
// migrating user's accepted terms of service data into the new table
|
// migrating user's accepted terms of service data into the new table
|
||||||
@@ -529,6 +528,7 @@ func UpgradeDatabaseToVersion56(sqlStore SqlStore) {
|
|||||||
sqlStore.RemoveIndexIfExists("idx_users_firstname_lower", "lower(FirstName)")
|
sqlStore.RemoveIndexIfExists("idx_users_firstname_lower", "lower(FirstName)")
|
||||||
sqlStore.RemoveIndexIfExists("idx_users_lastname_lower", "lower(LastName)")
|
sqlStore.RemoveIndexIfExists("idx_users_lastname_lower", "lower(LastName)")
|
||||||
}
|
}
|
||||||
//saveSchemaVersion(sqlStore, VERSION_5_6_0)
|
saveSchemaVersion(sqlStore, VERSION_5_6_0)
|
||||||
//}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user