Unverified Commit 4149569f authored by cpanato's avatar cpanato

upgrade db to 5.7

Signed-off-by: 's avatarcpanato <ctadeu@gmail.com>
parent b77ea2e2
......@@ -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.7.0",
"5.6.0",
"5.5.0",
"5.4.0",
......
......@@ -15,6 +15,7 @@ import (
)
const (
VERSION_5_7_0 = "5.7.0"
VERSION_5_6_0 = "5.6.0"
VERSION_5_5_0 = "5.5.0"
VERSION_5_4_0 = "5.4.0"
......@@ -90,6 +91,7 @@ func UpgradeDatabase(sqlStore SqlStore) {
UpgradeDatabaseToVersion54(sqlStore)
UpgradeDatabaseToVersion55(sqlStore)
UpgradeDatabaseToVersion56(sqlStore)
UpgradeDatabaseToVersion57(sqlStore)
// If the SchemaVersion is empty this this is the first time it has ran
// so lets set it to the current version.
......@@ -532,3 +534,9 @@ func UpgradeDatabaseToVersion56(sqlStore SqlStore) {
}
}
func UpgradeDatabaseToVersion57(sqlStore SqlStore) {
if shouldPerformUpgrade(sqlStore, VERSION_5_6_0, VERSION_5_7_0) {
saveSchemaVersion(sqlStore, VERSION_5_7_0)
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment