diff options
author | Carlos Tadeu Panato Junior <ctadeu@gmail.com> | 2018-09-28 17:18:19 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-28 17:18:19 +0200 |
commit | 006623e0f737ca7ee5d482fe47c09048a6f3d06a (patch) | |
tree | d360ebf9803470daa566408a483979c2bf6e9907 /store/sqlstore | |
parent | a551b375fa6bed975e8df88bf5d024df957a7684 (diff) | |
download | chat-006623e0f737ca7ee5d482fe47c09048a6f3d06a.tar.gz chat-006623e0f737ca7ee5d482fe47c09048a6f3d06a.tar.bz2 chat-006623e0f737ca7ee5d482fe47c09048a6f3d06a.zip |
Add preparatory upgrade code for 5.5.0 (#9479)
Diffstat (limited to 'store/sqlstore')
-rw-r--r-- | store/sqlstore/upgrade.go | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/store/sqlstore/upgrade.go b/store/sqlstore/upgrade.go index 66599373f..31815e41e 100644 --- a/store/sqlstore/upgrade.go +++ b/store/sqlstore/upgrade.go @@ -15,6 +15,7 @@ import ( ) const ( + VERSION_5_5_0 = "5.5.0" VERSION_5_4_0 = "5.4.0" VERSION_5_3_0 = "5.3.0" VERSION_5_2_0 = "5.2.0" @@ -86,6 +87,7 @@ func UpgradeDatabase(sqlStore SqlStore) { UpgradeDatabaseToVersion52(sqlStore) UpgradeDatabaseToVersion53(sqlStore) UpgradeDatabaseToVersion54(sqlStore) + UpgradeDatabaseToVersion55(sqlStore) // If the SchemaVersion is empty this this is the first time it has ran // so lets set it to the current version. @@ -504,3 +506,11 @@ func UpgradeDatabaseToVersion54(sqlStore SqlStore) { saveSchemaVersion(sqlStore, VERSION_5_4_0) } } + +func UpgradeDatabaseToVersion55(sqlStore SqlStore) { + // TODO: Uncomment following condition when version 5.5.0 is released + // if shouldPerformUpgrade(sqlStore, VERSION_5_4_0, VERSION_5_5_0) { + + // saveSchemaVersion(sqlStore, VERSION_5_5_0) + // } +} |