Add preparatory upgrade code for 5.4.0 (#9355)
* Add preparatory upgrade code for 5.4.0 * add migration from bad merge
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
4cf6913c1c
Коммит
54cb151d88
@@ -15,6 +15,7 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
VERSION_5_4_0 = "5.4.0"
|
||||||
VERSION_5_3_0 = "5.3.0"
|
VERSION_5_3_0 = "5.3.0"
|
||||||
VERSION_5_2_0 = "5.2.0"
|
VERSION_5_2_0 = "5.2.0"
|
||||||
VERSION_5_1_0 = "5.1.0"
|
VERSION_5_1_0 = "5.1.0"
|
||||||
@@ -84,6 +85,7 @@ func UpgradeDatabase(sqlStore SqlStore) {
|
|||||||
UpgradeDatabaseToVersion51(sqlStore)
|
UpgradeDatabaseToVersion51(sqlStore)
|
||||||
UpgradeDatabaseToVersion52(sqlStore)
|
UpgradeDatabaseToVersion52(sqlStore)
|
||||||
UpgradeDatabaseToVersion53(sqlStore)
|
UpgradeDatabaseToVersion53(sqlStore)
|
||||||
|
UpgradeDatabaseToVersion54(sqlStore)
|
||||||
|
|
||||||
// If the SchemaVersion is empty this this is the first time it has ran
|
// If the SchemaVersion is empty this this is the first time it has ran
|
||||||
// so lets set it to the current version.
|
// so lets set it to the current version.
|
||||||
@@ -489,3 +491,12 @@ func UpgradeDatabaseToVersion53(sqlStore SqlStore) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func UpgradeDatabaseToVersion54(sqlStore SqlStore) {
|
||||||
|
// TODO: Uncomment following condition when version 5.4.0 is released
|
||||||
|
// if shouldPerformUpgrade(sqlStore, VERSION_5_3_0, VERSION_5_4_0) {
|
||||||
|
sqlStore.AlterColumnTypeIfExists("OutgoingWebhooks", "Description", "varchar(500)", "varchar(500)")
|
||||||
|
sqlStore.AlterColumnTypeIfExists("IncomingWebhooks", "Description", "varchar(500)", "varchar(500)")
|
||||||
|
// saveSchemaVersion(sqlStore, VERSION_5_4_0)
|
||||||
|
// }
|
||||||
|
}
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user