diff options
author | Christopher Speller <crspeller@gmail.com> | 2017-11-11 00:23:19 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-11-11 00:23:19 -0800 |
commit | 756caaa1fb29faab06f6f8e4c9258ccfc3c5d4dc (patch) | |
tree | ea7b38a068a93688ab7a46eb2ffe464a7837e7a1 | |
parent | 91544f0c6d5d1fe6f03bbdcaf1523a95b0e38c5b (diff) | |
download | chat-756caaa1fb29faab06f6f8e4c9258ccfc3c5d4dc.tar.gz chat-756caaa1fb29faab06f6f8e4c9258ccfc3c5d4dc.tar.bz2 chat-756caaa1fb29faab06f6f8e4c9258ccfc3c5d4dc.zip |
Adding 4.5 upgrade code (#7815)
-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 edcae1244..d10235135 100644 --- a/store/sqlstore/upgrade.go +++ b/store/sqlstore/upgrade.go @@ -15,6 +15,7 @@ import ( ) const ( + VERSION_4_5_0 = "4.5.0" VERSION_4_4_0 = "4.4.0" VERSION_4_3_0 = "4.3.0" VERSION_4_2_0 = "4.2.0" @@ -58,6 +59,7 @@ func UpgradeDatabase(sqlStore SqlStore) { UpgradeDatabaseToVersion42(sqlStore) UpgradeDatabaseToVersion43(sqlStore) UpgradeDatabaseToVersion44(sqlStore) + UpgradeDatabaseToVersion45(sqlStore) // If the SchemaVersion is empty this this is the first time it has ran // so lets set it to the current version. @@ -319,3 +321,11 @@ func UpgradeDatabaseToVersion44(sqlStore SqlStore) { saveSchemaVersion(sqlStore, VERSION_4_4_0) } } + +func UpgradeDatabaseToVersion45(sqlStore SqlStore) { + //TODO: Uncomment when 4.5 is released + /*if shouldPerformUpgrade(sqlStore, VERSION_4_4_0, VERSION_4_5_0) { + + saveSchemaVersion(sqlStore, VERSION_4_5_0) + }*/ +} |